Dear All, I'm stumped on the following, seemingly simple issue.
I need to figure out in my configuration whether a given header file will be available when I'll try to build my library, or not. So that I could set a particular definition for the compiler according to whether the file is available or not. The complication is that I use generator expressions very heavily in setting up the compilation flags of the library in question. So at configuration time I don't even know yet all the include directories that I should be looking in to find that header. That only becomes known after the generation step. But as far as I can tell, check_include_files(...) can only run during the configuration step. So relying on generator expressions in setting up its include directories is not an option. Is there any other possibility of making such a check, during the generation step? Or is there some other mechanism that I could use to do this check during the build itself? (After all, it could be a solution to generate a configuration header with this information during the build itself...) Cheers, Attila -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake