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,12 +77,15 @@ foreach (comp ${Libcaf_FIND_COMPONENTS}) ...@@ -77,12 +77,15 @@ 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})
# skip probe_event as it is header only
if (NOT ${comp} STREQUAL "probe_event")
if ("${LIBCAF_LIBRARY_${UPPERCOMP}}" STREQUAL "LIBCAF_LIBRARY-NOTFOUND") if ("${LIBCAF_LIBRARY_${UPPERCOMP}}" STREQUAL "LIBCAF_LIBRARY-NOTFOUND")
# exit on first error # exit on first error
break () break ()
else () else ()
set(LIBCAF_LIBRARIES ${LIBCAF_LIBRARIES} ${LIBCAF_LIBRARY_${UPPERCOMP}}) set(LIBCAF_LIBRARIES ${LIBCAF_LIBRARIES} ${LIBCAF_LIBRARY_${UPPERCOMP}})
endif () endif ()
endif ()
endforeach () endforeach ()
# final steps to tell CMake we're done # final steps to tell CMake we're done
......
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