diff --git a/cmake/xo_cxx.cmake b/cmake/xo_cxx.cmake index 740e0833..e82d21d1 100644 --- a/cmake/xo_cxx.cmake +++ b/cmake/xo_cxx.cmake @@ -58,8 +58,11 @@ macro(xo_include_headeronly_options2 target) # need that build directory to also appear in # compiler's include path # + # NOTE: using INTERFACE here is mandatory. Otherwise get error: + # target_include_directories may only set INTERFACE properties on INTERFACE targets + # target_include_directories( - ${target} PUBLIC + ${target} INTERFACE $ $ $ # e.g. for #include "indentlog/scope.hpp"