Skip to content

Commit c618f75

Browse files
committed
Turned auto RPATH off for Linux
1 parent c0c3dcb commit c618f75

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

IsoModel/src/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,6 @@ set(${target_name}_src
7575

7676
set (library_name isomodel)
7777

78-
# OR CMAKE_SYSTEM_NAME STREQUAL "Linux"
79-
8078
if(MSVC)
8179
set(Boost_USE_STATIC_LIBS ON)
8280
else()
@@ -86,6 +84,9 @@ else()
8684
FIND_PACKAGE ( Threads REQUIRED )
8785
endif()
8886

87+
if (CMAKE_SYSTEM_NAME STREQUAL "Linux")
88+
set(CMAKE_SKIP_RPATH true)
89+
endif()
8990

9091
find_package(Boost 1.55.0 REQUIRED COMPONENTS system filesystem program_options)
9192
include_directories(${Boost_INCLUDE_DIR})

0 commit comments

Comments
 (0)