Skip to content

Commit

Permalink
Check if the tests target exists before creating it
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell authored and tmadlener committed Jan 15, 2024
1 parent 9da0cd0 commit 13e8f58
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion streamlog/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ SET( test_bins test_log)
ADD_SHARED_LIBRARY( streamlog_test EXCLUDE_FROM_ALL fibonacci.cc )

# create symbolic bin target
ADD_CUSTOM_TARGET( tests )
if (NOT TARGET tests)
ADD_CUSTOM_TARGET( tests )
endif()

# loop through list of test binaries
FOREACH( bin ${test_bins} )
Expand Down

0 comments on commit 13e8f58

Please sign in to comment.