Changeset 565b311 in tol for toltcl


Ignore:
Timestamp:
Mar 16, 2015, 10:24:00 AM (12 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
5e88b2f
Parents:
c7329f6
Message:

#refrefs #1812, refs #1818, toltcl con mingw32

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6507 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • toltcl/generic/CMakeLists.txt

    rc7329f6 r565b311  
    66message( STATUS "Using TCL_LIBRARY = ${TCL_LIBRARY}" )
    77
    8 # use, i.e. don't skip the full RPATH for the build tree
    9 SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
     8if ( NOT WIN32 )
     9        # use, i.e. don't skip the full RPATH for the build tree
     10  SET(CMAKE_SKIP_BUILD_RPATH  FALSE)
    1011
    11 # when building, don't use the install RPATH already
    12 # (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)
    1415
    15 SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
     16  SET(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
    1617
    17 # add the automatically determined parts of the RPATH
    18 # which point to directories outside the build tree to the install RPATH
    19 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)
    2021
    2122
    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")
     28endif( NOT WIN32 )
    2729
    2830add_library( toltcl SHARED
    … …  
    3840target_link_libraries( tolsh ${TCL_LIBRARY} )
    3941
     42message( STATUS "TOLTCL_DEST_DIR = ${TOLTCL_DEST_DIR}" )
    4043install( TARGETS tolsh RUNTIME DESTINATION "bin" )
    4144if( WIN32 )
Note: See TracChangeset for help on using the changeset viewer.