Commit e35e7016 authored by Dominik Charousset's avatar Dominik Charousset

Fix "requires list to be present" CMake error

parent 39f8035b
......@@ -102,7 +102,9 @@ foreach (comp ${CAF_FIND_COMPONENTS})
endif ()
endforeach ()
list(REMOVE_DUPLICATES CAF_INCLUDE_DIRS)
if (DEFINED CAF_INCLUDE_DIRS)
list(REMOVE_DUPLICATES CAF_INCLUDE_DIRS)
endif()
# let CMake check whether all requested components have been found
include(FindPackageHandleStandardArgs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment