Skip to content
Permalink
Browse files

Remove *_EXPORT leftovers

  • Loading branch information
m-kuhn committed Jan 4, 2017
1 parent 2f35e16 commit 6c1677d0a5c93af46e1db20bb7f699db5058df37
Showing with 0 additions and 10 deletions.
  1. +0 −10 CMakeLists.txt
@@ -564,21 +564,11 @@ IF(COMMAND cmake_policy)
ENDIF(COMMAND cmake_policy)

IF (WIN32)
SET(DLLIMPORT "__declspec(dllimport)")
SET(DLLEXPORT "__declspec(dllexport)")
ELSE (WIN32)
IF ("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU" OR "${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
SET(DLLEXPORT "__attribute__ ((visibility (\\\"default\\\")))")
ELSE()
SET(DLLEXPORT "")
ENDIF()

IF(PEDANTIC AND NOT APPLE)
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 APPLE)

ENDIF(WIN32)

SET(CMAKE_CXX_VISIBILITY_PRESET hidden)

0 comments on commit 6c1677d

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