If I have a target 'foo' and I do:
target_include_directories(foo INTERFACE
$<BUILD_INTERFACE:hello>
$<INSTALL_INTERFACE:world>
)
...then in the build export file, I see the interface include
directories 'hello', which seems reasonable.
However, if I do:
target_include_directories(foo INTERFACE
$<BUILD_INTERFACE:hello>
$<INSTALL_INTERFACE:world>
$<BUILD_INTERFACE:left>
$<INSTALL_INTERFACE:right>
)
...then I get 'hello;$<INSTALL_INTERFACE:world>;left'.
Is this expected/correct?
(Obviously in the above case I could combine things, but in my real
example I have conditionals and a mixture of INTERFACE and PUBLIC that
would make it difficult to avoid repeating the genex.)
--
Matthew
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers