diff --git a/CMakeLists.txt b/CMakeLists.txt index 34930832..563fef29 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -220,6 +220,9 @@ if(PROJECT_PACKAGE_DEPENDENCIES) get_filename_component(prefix ${msgpack_include}/.. ABSOLUTE) elseif(${dep} STREQUAL OFI) get_filename_component(prefix ${${dep}_INCLUDE_DIRS}/.. ABSOLUTE) + elseif(${dep} STREQUAL nanomsg) + get_target_property(nn_include nanomsg INTERFACE_INCLUDE_DIRECTORIES) + get_filename_component(prefix ${nn_include}/.. ABSOLUTE) elseif(${dep} STREQUAL Doxygen) get_target_property(doxygen_bin Doxygen::doxygen INTERFACE_LOCATION) get_filename_component(prefix ${doxygen_bin} DIRECTORY)