Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Only compile the test suite if TESTSUITE is defined
This avoids the following linker error:

unresolved external symbol _MemoryModuleTestsuite referenced in function _main
  • Loading branch information
joankaradimov committed Mar 15, 2022
commit 7508655731e9a01a6fc4fc2b0d2dbd83ce49cf56
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ option(TESTSUITE "Compile with TESTSUITE support" OFF)
if (TESTSUITE)
message (STATUS "Compile with TESTSUITE support")
add_definitions ("-DTESTSUITE")
add_subdirectory (tests)
else ()
message (STATUS "Compile without TESTSUITE support")
endif ()
Expand All @@ -55,6 +56,5 @@ if (NOT MSVC)
endif ()

add_subdirectory (example)
add_subdirectory (tests)

enable_language (RC)