check whether targetname exists
This commit is contained in:
parent
de0e687cbb
commit
a9eaf35b43
@ -1,3 +1,9 @@
|
||||
if(NOT TARGET_NAME)
|
||||
message(WARNING
|
||||
"TARGET_NAME needs to be defined because the Catch2 sources will be added to it"
|
||||
)
|
||||
endif()
|
||||
|
||||
target_sources(${TARGET_NAME} PRIVATE
|
||||
CatchDefinitions.cpp
|
||||
CatchFactory.cpp
|
||||
|
Loading…
Reference in New Issue
Block a user