cmake_modules/paths.cmake
branchwebgl
changeset 9276 91bd3f54fac1
parent 9232 571e55b32da5
child 9279 69161099d6d9
equal deleted inserted replaced
9273:bd95c9db4f0f 9276:91bd3f54fac1
    57 # - the third one is the full path of the system dir
    57 # - the third one is the full path of the system dir
    58 #source http://www.cmake.org/pipermail/cmake/2008-January/019290.html
    58 #source http://www.cmake.org/pipermail/cmake/2008-January/019290.html
    59 set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
    59 set(CMAKE_INSTALL_RPATH "$ORIGIN/../${target_library_install_dir}/:$ORIGIN/:${CMAKE_INSTALL_PREFIX}/${target_library_install_dir}/")
    60 
    60 
    61 if(UNIX AND NOT APPLE)
    61 if(UNIX AND NOT APPLE)
    62     #make sure $ORIGIN is respected
    62     if(CMAKE_COMPILER_IS_GNUCC)
    63     add_linker_flag("-zorigin")
    63        #make sure $ORIGIN is respected
       
    64         add_linker_flag("-zorigin")
       
    65     endif()
    64     #apply RPATH settings to pascal executables
    66     #apply RPATH settings to pascal executables
    65     add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath -k'${CMAKE_INSTALL_RPATH}'")
    67     add_flag_append(CMAKE_Pascal_FLAGS "-k-rpath -k'${CMAKE_INSTALL_RPATH}'")
    66     #until we link with external things there is no need to set rpath on haskell
    68     #until we link with external things there is no need to set rpath on haskell
    67     #should you need it remember to escape $ with $$
    69     #should you need it remember to escape $ with $$
    68     #list(APPEND haskell_flags "-optl" "-Wl,-rpath,'${CMAKE_INSTALL_RPATH_ESCAPED}'")
    70     #list(APPEND haskell_flags "-optl" "-Wl,-rpath,'${CMAKE_INSTALL_RPATH_ESCAPED}'")