Hi all,
I just found out that CHECK_INCLUDE_FILES ignores CMAKE_FIND_ROOT_PATH. The
documentation for CHECK_INCLUDE_FILES says:
...
The following variables may be set before calling this macro to
modify the way the check is run:
CMAKE_REQUIRED_FLAGS = string of compile command line flags
CMAKE_REQUIRED_DEFINITIONS = list of macros to define (-DFOO=bar)
CMAKE_REQUIRED_INCLUDES = list of include directories
So it seems intentional. But wouldn't it make sense to let CHECK_INCLUDE_FILES
look in CMAKE_FIND_ROOT_PATH? Or maybe more precise, give the compiler include
flags for CMAKE_FIND_ROOT_PATH/{include/,usr/include}? It just seems wrong to me
that include files in CMAKE_FIND_ROOT_PATH can be ignored like that and it
destroys the meaning of CMAKE_FIND_ROOT_PATH. Comments?
Is maybe CHECK_INCLUDE_FILES deprecated and FIND_PATH/FIND_FILE is the way
to go?
I'm using CMake 2.8.2.
Best regards,
Bjørn Forsman
_______________________________________________
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://www.cmake.org/mailman/listinfo/cmake