Commit 6902a1ac authored by Joseph Noir's avatar Joseph Noir

Add check to skip looking for probe-event lib

The probe-event module is header only and does not provide
a library to install, now the find script skips looking for it.
parent 4a6f0c57
...@@ -77,11 +77,14 @@ foreach (comp ${Libcaf_FIND_COMPONENTS}) ...@@ -77,11 +77,14 @@ foreach (comp ${Libcaf_FIND_COMPONENTS})
../../actor-framework/build/lib ../../actor-framework/build/lib
../../../actor-framework/build/lib) ../../../actor-framework/build/lib)
mark_as_advanced(LIBCAF_LIBRARY_${UPPERCOMP}) mark_as_advanced(LIBCAF_LIBRARY_${UPPERCOMP})
if ("${LIBCAF_LIBRARY_${UPPERCOMP}}" STREQUAL "LIBCAF_LIBRARY-NOTFOUND") # skip probe_event as it is header only
# exit on first error if (NOT ${comp} STREQUAL "probe_event")
break () if ("${LIBCAF_LIBRARY_${UPPERCOMP}}" STREQUAL "LIBCAF_LIBRARY-NOTFOUND")
else () # exit on first error
set(LIBCAF_LIBRARIES ${LIBCAF_LIBRARIES} ${LIBCAF_LIBRARY_${UPPERCOMP}}) break ()
else ()
set(LIBCAF_LIBRARIES ${LIBCAF_LIBRARIES} ${LIBCAF_LIBRARY_${UPPERCOMP}})
endif ()
endif () endif ()
endforeach () endforeach ()
...@@ -93,4 +96,4 @@ find_package_handle_standard_args(Libcaf ...@@ -93,4 +96,4 @@ find_package_handle_standard_args(Libcaf
LIBCAF_INCLUDE_DIRS) LIBCAF_INCLUDE_DIRS)
mark_as_advanced(LIBCAF_ROOT_DIR mark_as_advanced(LIBCAF_ROOT_DIR
LIBCAF_LIBRARIES LIBCAF_LIBRARIES
LIBCAF_INCLUDE_DIRS) LIBCAF_INCLUDE_DIRS)
\ No newline at end of file
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