Skip to content
Permalink
Browse files

Merge pull request #6224 from rkanavath/master

enable --no-undefined only for linux
  • Loading branch information
jef-n committed Jan 30, 2018
2 parents 02bfe0a + f6a2c0a commit 18a399a81a1ae89e25bf391ea4da4c5014ba1a13
Showing with 2 additions and 2 deletions.
  1. +2 −2 CMakeLists.txt
@@ -616,11 +616,11 @@ IF (WITH_CORE)
ENDIF(MSVC)
ENDIF(COMMAND cmake_policy)

IF (PEDANTIC AND NOT WIN32 AND NOT APPLE)
if("${CMAKE_SYSTEM_NAME}" MATCHES "Linux")
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined")
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined")
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-undefined")
ENDIF(PEDANTIC AND NOT WIN32 AND NOT APPLE)
endif() #"${CMAKE_SYSTEM_NAME}" MATCHES "Linux")

SET(CMAKE_CXX_VISIBILITY_PRESET hidden)
INCLUDE(GenerateExportHeader)

0 comments on commit 18a399a

Please sign in to comment.
You can’t perform that action at this time.