Skip to content
Permalink
Browse files

enable --no-undefined only for linux

  • Loading branch information
Rashad Kanavath
Rashad Kanavath committed Jan 30, 2018
1 parent 02bfe0a commit f6a2c0a9550d418bc97ab7c9668a73941053360f
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 f6a2c0a

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