Skip to content

Commit 1bee95a

Browse files
committed
Distinguish library test config types based on sources
1 parent f62419d commit 1bee95a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Tests.cmake

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,13 @@ function(_configure_target target_name type)
3131
add_executable(${target_name})
3232
set(scope PRIVATE)
3333
elseif(${type} STREQUAL "test_config")
34-
add_library(${target_name} INTERFACE)
35-
set(scope INTERFACE)
34+
if(args_SOURCES)
35+
add_library(${target_name} STATIC)
36+
set(scope PUBLIC)
37+
else()
38+
add_library(${target_name} INTERFACE)
39+
set(scope INTERFACE)
40+
endif()
3641
endif()
3742

3843
target_sources(${target_name}

0 commit comments

Comments
 (0)