I have the following in CMakeLists.txt:
-DCMAKE_REQUIRED_INCLUDES=/directory/containing/fooincludefile to cmake, I still get:
-- Looking for include file foo.h - not found
Is this not the correct usage of
CMAKE_REQUIRED_INCLUDES (per the
check_include_files documentation)? CMakeError.log shows that the
-I/directory/containing/fooincludefile I was hoping for is not being passed to the compiler.