Skip to content

Commit 22cae13

Browse files
committed
Mark lsl_test_internal with LIBLSL_EXPORTS so it can link the headers in lslobj.
1 parent 779473e commit 22cae13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

testing/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ endif()
7474
message(STATUS ${LSL_TEST_INTERNAL_SRCS})
7575
add_executable(lsl_test_internal ${LSL_TEST_INTERNAL_SRCS})
7676
target_link_libraries(lsl_test_internal PRIVATE lslobj lslboost common catch_main)
77-
77+
# Pretend that lsl_test_internal is part of a shared lib so that it can use the __export symbols lslobj. REQ by MinGW.
78+
target_compile_definitions(lsl_test_internal PRIVATE LIBLSL_EXPORTS)
7879

7980
if(LSL_BENCHMARKS)
8081
# to get somewhat reproducible performance numbers:

0 commit comments

Comments
 (0)