- Timestamp:
- Mar 16, 2015, 10:24:00 AM (12 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 5e88b2f
- Parents:
- c7329f6
- File:
-
- 1 edited
-
toltcl/generic/CMakeLists.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
toltcl/generic/CMakeLists.txt
rc7329f6 r565b311 6 6 message( STATUS "Using TCL_LIBRARY = ${TCL_LIBRARY}" ) 7 7 8 # use, i.e. don't skip the full RPATH for the build tree 9 SET(CMAKE_SKIP_BUILD_RPATH FALSE) 8 if ( NOT WIN32 ) 9 # use, i.e. don't skip the full RPATH for the build tree 10 SET(CMAKE_SKIP_BUILD_RPATH FALSE) 10 11 11 # when building, don't use the install RPATH already12 # (but later on when installing)13 SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)12 # when building, don't use the install RPATH already 13 # (but later on when installing) 14 SET(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE) 14 15 15 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")16 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") 16 17 17 # add the automatically determined parts of the RPATH18 # which point to directories outside the build tree to the install RPATH19 SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)18 # add the automatically determined parts of the RPATH 19 # which point to directories outside the build tree to the install RPATH 20 SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) 20 21 21 22 22 # the RPATH to be used when installing, but only if it's not a system directory 23 LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) 24 IF("${isSystemDir}" STREQUAL "-1") 25 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") 26 ENDIF("${isSystemDir}" STREQUAL "-1") 23 # the RPATH to be used when installing, but only if it's not a system directory 24 LIST(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir) 25 IF("${isSystemDir}" STREQUAL "-1") 26 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") 27 ENDIF("${isSystemDir}" STREQUAL "-1") 28 endif( NOT WIN32 ) 27 29 28 30 add_library( toltcl SHARED … … 38 40 target_link_libraries( tolsh ${TCL_LIBRARY} ) 39 41 42 message( STATUS "TOLTCL_DEST_DIR = ${TOLTCL_DEST_DIR}" ) 40 43 install( TARGETS tolsh RUNTIME DESTINATION "bin" ) 41 44 if( WIN32 )
Note: See TracChangeset
for help on using the changeset viewer.
