Skip to content

Commit b961157

Browse files
committed
Declare test macro in test export interface
1 parent dde9c6c commit b961157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_VERSION_PATCH=${PROJ
142142
target_link_libraries(scratchcpp PRIVATE scratchcpp-test-export)
143143

144144
if (LIBSCRATCHCPP_BUILD_UNIT_TESTS)
145-
target_compile_definitions(scratchcpp PRIVATE LIBSCRATCHCPP_TEST)
145+
target_compile_definitions(scratchcpp-test-export INTERFACE LIBSCRATCHCPP_TEST)
146146

147147
enable_testing()
148148
add_subdirectory(test)

0 commit comments

Comments
 (0)