First,I added the include path1 via include_directories and then I added the include path2 via target_include_directories.The result is path1 is before path2.
How can I place path2 before path1 without changing the call sequence?
Have you tried the BEFORE
keyword?
https://cmake.org/cmake/help/latest/command/target_include_directories.html
Thanks.
BEFORE is ok.