Skip to content
Snippets Groups Projects
Verified Commit 8d19542b authored by Lars Bilke's avatar Lars Bilke
Browse files

[CMake] Check header fix for non-existing targets.

parent bf0d29a5
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,10 @@ add_custom_target(check-header ...@@ -15,6 +15,10 @@ add_custom_target(check-header
# Checks header for standalone compilation # Checks header for standalone compilation
function(_check_header_compilation TARGET) function(_check_header_compilation TARGET)
if(NOT TARGET ${TARGET})
return()
endif()
get_target_property(SOURCE_FILES ${TARGET} SOURCES) get_target_property(SOURCE_FILES ${TARGET} SOURCES)
get_target_property(SOURCE_DIR ${TARGET} SOURCE_DIR) get_target_property(SOURCE_DIR ${TARGET} SOURCE_DIR)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment