@@ -62,13 +62,14 @@ set ( CMAKE_Fortran_MODULE_DIRECTORY "${CMAKE_BINARY_DIR}/include" )
62
62
#-------------------------------------
63
63
# Most of this is probably 'wrong' for Windows/Cygwin
64
64
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?
68
68
set ( CMAKE_INSTALL_LIBDIR lib )
69
69
set ( CMAKE_INSTALL_INCLUDEDIR include )
70
70
set ( CMAKE_INSTALL_DATAROOTDIR share )
71
- endif ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
71
+ endif ( UNIX )
72
+ #endif ( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
72
73
73
74
# Set the package name to be specific to the compiler used, so that
74
75
# versions compiled with different compilers can be installed in parallel
@@ -88,6 +89,7 @@ if ( ENABLE_DYLIBS_USE_RPATH )
88
89
else ( ENABLE_DYLIBS_USE_RPATH )
89
90
set ( CMAKE_INSTALL_NAME_DIR
90
91
"\$ {CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} /${FCOMPILER_DIR} " )
92
+ set ( CMAKE_MACOSX_RPATH FALSE )
91
93
endif ( ENABLE_DYLIBS_USE_RPATH )
92
94
93
95
#---------------------------------------------
0 commit comments