You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issues fixed surrounding the shared/dynamic library build
1. For some reason, CMake refuses to add the requisit linker
flags (`-Wl,-rpath,/path/to/dylib`) when building executables
against the imported dylib on Mac OS X and the Intel compilers.
gfortran 4.9 seems to not trigger this CMake bug for some reason.
Still investigating.
1. An option is present to select absolute install_name_dir vs @rpath
on Mac when building the dylib. Since some issues with @rpath and
CMake persist the `INSTALL_NAME_DIR` property is used rather than
`@rpath`
1. However, if `DESTDIR=...` is defined when you `make install` the
install name dir set at congigure time is no longer correct.
Some install time CMake code was added to help fix this.
1. Some cached properties controling the build behavior were re-
named to enable better grouping in `cmake-gui` and `ccmake`
if ( "${FULL_BUILD_DIR}"STREQUAL"${FULL_SOURCE_DIR}" )
8
-
if ( ALLOW_IN_SOURCE_BUILDS )
8
+
if ( ENABLE_IN_SOURCE_BUILDS )
9
9
message ( WARNING
10
10
"Caution, in source build detected, procede at your own risk. Build and source directories are the same: ${CMAKE_SOURCE_DIR}" )
11
-
else ( ALLOW_IN_SOURCE_BUILDS )
11
+
else ( ENABLE_IN_SOURCE_BUILDS )
12
12
message ( SEND_ERROR
13
-
"Error, in source builds are not supported. If you really want an in source build (and know what you are doing) you may set the advanced ALLOW_IN_SOURCE_BUILDS variable to ON. Otherwise create a build directory not matching the source directory, '${CMAKE_SOURCE_DIR}'." )
14
-
endif ( ALLOW_IN_SOURCE_BUILDS )
13
+
"Error, in source builds are not supported. If you really want an in source build (and know what you are doing) you may set the advanced ENABLE_IN_SOURCE_BUILDS variable to ON. Otherwise create a build directory not matching the source directory, '${CMAKE_SOURCE_DIR}'." )
0 commit comments