cmake_modules/platform.cmake
branch0.9.20
changeset 9860 d419ff107e15
parent 9858 343d12172070
child 9887 6add6157b58e
equal deleted inserted replaced
9858:343d12172070 9860:d419ff107e15
    80         add_flag_append(CMAKE_Pascal_FLAGS "-k-macosx_version_min -k${minimum_macosx_version}")
    80         add_flag_append(CMAKE_Pascal_FLAGS "-k-macosx_version_min -k${minimum_macosx_version}")
    81     endif()
    81     endif()
    82 
    82 
    83     #add user framework directory
    83     #add user framework directory
    84     add_flag_append(CMAKE_Pascal_FLAGS "-Ff~/Library/Frameworks")
    84     add_flag_append(CMAKE_Pascal_FLAGS "-Ff~/Library/Frameworks")
       
    85 
       
    86     #workaround older cmake versions
       
    87     if(${CMAKE_VERSION} VERSION_LESS "2.8.12")
       
    88         add_flag_append(CMAKE_C_LINK_FLAGS "-Wl,-rpath -Wl,${CMAKE_INSTALL_RPATH}")
       
    89         add_flag_append(CMAKE_CXX_LINK_FLAGS "-Wl,-rpath -Wl,${CMAKE_INSTALL_RPATH}")
       
    90         add_flag_append(CMAKE_Pascal_LINK_FLAGS "-k-rpath -k${CMAKE_INSTALL_RPATH}")
       
    91     endif()
    85 endif(APPLE)
    92 endif(APPLE)
    86 
    93 
    87 if(MINGW)
    94 if(MINGW)
    88     #this flags prevents a few dll hell problems
    95     #this flags prevents a few dll hell problems
    89     add_flag_append(CMAKE_C_FLAGS "-static-libgcc")
    96     add_flag_append(CMAKE_C_FLAGS "-static-libgcc")