mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
Corrected CMAKE_SHARED_LINKER_FLAGS_DEBUG setting, replacing 'one' with 'ell', as reported by nschloe at https://github.com/Unidata/netcdf-c/issues/58
This commit is contained in:
parent
2dccd773e9
commit
8d5eafd7fc
@ -152,11 +152,11 @@ IF(CMAKE_COMPILER_IS_GNUCC OR APPLE)
|
||||
# Debugging flags
|
||||
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall")
|
||||
|
||||
# Check to see if -W1,--no-undefined is supported.
|
||||
CHECK_C_LINKER_FLAG("-W1,--no-undefined" LIBTOOL_HAS_NO_UNDEFINED)
|
||||
# Check to see if -Wl,--no-undefined is supported.
|
||||
CHECK_C_LINKER_FLAG("-Wl,--no-undefined" LIBTOOL_HAS_NO_UNDEFINED)
|
||||
|
||||
IF(LIBTOOL_HAS_NO_UNDEFINED)
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -W1,--no-undefined")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_DEBUG "${CMAKE_SHARED_LINKER_FLAGS_DEBUG} -Wl,--no-undefined")
|
||||
ENDIF()
|
||||
SET(CMAKE_REQUIRED_FLAGS "${TMP_CMAKE_REQUIRED_FLAGS}")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user