Skip to content

Commit

Permalink
Add set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)
Browse files Browse the repository at this point in the history
  • Loading branch information
allanleal committed Sep 23, 2022
1 parent 0e50caf commit 19e524e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ file(GLOB_RECURSE SOURCE_FILES *.cpp *.cxx)
# Building shared library, so `class_main.cpp` should be ignored in the list of source files
list(FILTER SOURCE_FILES EXCLUDE REGEX "class_main.cpp")

# Enable automatic creation of a module definition (.def) file for a SHARED library on Windows.
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS TRUE)

# Create the shared library using the collected source files
add_library(phreeqc4rkt SHARED ${HEADER_FILES} ${SOURCE_FILES})

Expand Down

0 comments on commit 19e524e

Please sign in to comment.