Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Always export symbols for test.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikogenvik committed May 20, 2023
1 parent 50472a5 commit 4b30e86
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,7 @@ macro(wf_add_test TEST_FILE)
add_dependencies(check ${TEST_NAME})

#If Python has been built statically (as with Conan) we need to enable exports so the dynamic loading works.
if (PYTHON_IS_STATIC)
set_property(TARGET ${TEST_NAME} PROPERTY ENABLE_EXPORTS 1)
endif()
set_property(TARGET ${TEST_NAME} PROPERTY ENABLE_EXPORTS 1)
endmacro()

macro(wf_add_benchmark TEST_FILE)
Expand All @@ -90,9 +88,7 @@ macro(wf_add_benchmark TEST_FILE)
add_dependencies(benchmark ${TEST_NAME})

#If Python has been built statically (as with Conan) we need to enable exports so the dynamic loading works.
if (PYTHON_IS_STATIC)
set_property(TARGET ${TEST_NAME} PROPERTY ENABLE_EXPORTS 1)
endif()
set_property(TARGET ${TEST_NAME} PROPERTY ENABLE_EXPORTS 1)

endmacro()

Expand Down

0 comments on commit 4b30e86

Please sign in to comment.