Skip to content

Commit

Permalink
NUP-2320 Support "export all symbols" for MSVC as well as MINGW, usin…
Browse files Browse the repository at this point in the history
…g compiler-specific techniques.
  • Loading branch information
Vitaly Kruglikov committed Feb 1, 2017
1 parent 24955c0 commit 0e5d18e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,11 @@ if(WIN32)
# __declspec(dllexport) attribute
set(_SRC_SHARED_NUPICCORE_LINK_FLAGS
"${_SRC_SHARED_NUPICCORE_LINK_FLAGS} -Wl,-export-all-symbols")
elseif(MSVC)
set_target_properties(${_SRC_LIB_SHARED_NUPICCORE} PROPERTIES
WINDOWS_EXPORT_ALL_SYMBOLS ON)
else()
message (FATAL_ERROR "Unsupported compiler! CMAKE_CXX_COMPILER_ID=${CMAKE_CXX_COMPILER_ID}")
endif()
endif()

Expand Down

0 comments on commit 0e5d18e

Please sign in to comment.