Open Levi-Armstrong opened 3 years ago
To solve the issue temperately I had to add the following below to all cmake file performing a find_package.
get_target_property(CHECK_INCLUDE_DIRECTORIES console_bridge::console_bridge INTERFACE_INCLUDE_DIRECTORIES)
if (NOT ${CHECK_INCLUDE_DIRECTORIES})
set_target_properties(console_bridge::console_bridge PROPERTIES INTERFACE_INCLUDE_DIRECTORIES ${console_bridge_INCLUDE_DIRS})
endif()
I ran into an issue where my project could not find the header
console_bridge/console_bridge.h
event though find_package was able to find the package. After further investigation I found that the targetconsole_bridge::console_bridge
provided by does not set the targets INTERFACE_INCLUDE_DIRECTORIES, but it does set the cmake variableconsole_bridge_INCLUDE_DIRS
.Reproduce:
Output: