Is there a way to have CMake include_directories
include the system directory prefix with equals(=
) character? So that I can have gcc prefix the associated dirs with -isysroot
flag for the cross compilation.
When I try to include the path with equals(=
) prefix, assumes relative path and prefixes with current source path:
include_directories(AFTER SYSTEM "=/usr/include")
results:
-isystem /root/opencv-2-4-9/opencv/modules/highgui/=/usr/include/
what I expect is:
-isystem=/usr/include/