Skip to content

Commit

Permalink
fix(windows): only export symbols for viennals
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed Nov 29, 2023
1 parent e6b56f7 commit 8c894ba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ if((VIENNALS_ENABLE_SANITIZER AND CMAKE_BUILD_TYPE STREQUAL "Debug") OR VIENNALS
message(STATUS "[ViennaLS] Using Sanitizer")
endif()

if(MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()

set(CPM_USE_LOCAL_PACKAGES ON)

# --------------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -164,6 +160,7 @@ if(VIENNALS_PRECOMPILE_HEADERS)

target_link_libraries(${PROJECT_NAME}Lib PUBLIC ${PROJECT_NAME})
target_sources(${PROJECT_NAME}Lib PUBLIC "lib/specialisations.cpp")
set_target_properties(${PROJECT_NAME}Lib PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()

# --------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 8c894ba

Please sign in to comment.