Re: [CMake] Controlling order of includes with INTERFACE_INCLUDE_DIRECTORIES for an IMPORTED target

2018-10-12 Thread David Jobet
> what version of CMake are you using? I'm using cmake version 3.10.0. > Which seems at odds with your observations/comments, unless I'm > misunderstanding what you're saying. Well, what's for sure is that the above invocation does not compile, but if at our root CMakeLists.txt we add

Re: [CMake] Controlling order of includes with INTERFACE_INCLUDE_DIRECTORIES for an IMPORTED target

2018-10-12 Thread Craig Scott
On Fri, Oct 12, 2018 at 6:42 PM David Jobet wrote: > Hello, > > we embed in our source a copy of an ICC build of LLVM, that we import : > > add_library(global_llvm_external STATIC IMPORTED) > set_property(TARGET global_llvm_external APPEND PROPERTY > INTERFACE_INCLUDE_DIRECTORIES

[CMake] Controlling order of includes with INTERFACE_INCLUDE_DIRECTORIES for an IMPORTED target

2018-10-12 Thread David Jobet
Hello, we embed in our source a copy of an ICC build of LLVM, that we import : add_library(global_llvm_external STATIC IMPORTED) set_property(TARGET global_llvm_external APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_SOURCE_DIR}/icc/include) set_property(TARGET