Skip to content

Commit b4d2daa

Browse files
committed
Stop passing -rpath to linker on Linux
1 parent 118f3b8 commit b4d2daa

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ set ( CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/include" )
6262
#-------------------------------------
6363
# Most of this is probably 'wrong' for Windows/Cygwin
6464

65-
if ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
66-
include ( GNUInstallDirs ) # Standard CMake module
67-
elseif ( UNIX ) #Apple, BSD, solaris, other *NIX? Framework on Apple instead?
65+
#if ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
66+
# include ( GNUInstallDirs ) # Standard CMake module
67+
if ( UNIX ) #Apple, BSD, solaris, other *NIX? Framework on Apple instead?
6868
set ( CMAKE_INSTALL_LIBDIR lib )
6969
set ( CMAKE_INSTALL_INCLUDEDIR include )
7070
set ( CMAKE_INSTALL_DATAROOTDIR share )
71-
endif ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
71+
endif ( UNIX )
72+
#endif ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
7273

7374
# Set the package name to be specific to the compiler used, so that
7475
# versions compiled with different compilers can be installed in parallel
@@ -88,6 +89,7 @@ if ( ENABLE_DYLIBS_USE_RPATH )
8889
else ( ENABLE_DYLIBS_USE_RPATH )
8990
set ( CMAKE_INSTALL_NAME_DIR
9091
"\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/${FCOMPILER_DIR}" )
92+
set( CMAKE_MACOSX_RPATH FALSE )
9193
endif ( ENABLE_DYLIBS_USE_RPATH )
9294

9395
#---------------------------------------------

0 commit comments

Comments
 (0)