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})
../../actor-framework/build/lib
../../../actor-framework/build/lib)
mark_as_advanced(LIBCAF_LIBRARY_${UPPERCOMP})
if ("${LIBCAF_LIBRARY_${UPPERCOMP}}" STREQUAL "LIBCAF_LIBRARY-NOTFOUND")
# exit on first error
break ()
else ()
set(LIBCAF_LIBRARIES ${LIBCAF_LIBRARIES} ${LIBCAF_LIBRARY_${UPPERCOMP}})
# skip probe_event as it is header only
if (NOT ${comp} STREQUAL "probe_event")
if ("${LIBCAF_LIBRARY_${UPPERCOMP}}" STREQUAL "LIBCAF_LIBRARY-NOTFOUND")
# exit on first error
break ()
else ()
set(LIBCAF_LIBRARIES ${LIBCAF_LIBRARIES} ${LIBCAF_LIBRARY_${UPPERCOMP}})
endif ()
endif ()
endforeach ()
......@@ -93,4 +96,4 @@ find_package_handle_standard_args(Libcaf
LIBCAF_INCLUDE_DIRS)
mark_as_advanced(LIBCAF_ROOT_DIR
LIBCAF_LIBRARIES
LIBCAF_INCLUDE_DIRS)
\ No newline at end of file
LIBCAF_INCLUDE_DIRS)
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