The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=12286 ====================================================================== Reported By: Jérôme Gardou Assigned To: ====================================================================== Project: CMake Issue ID: 12286 Category: CMake Reproducibility: always Severity: tweak Priority: normal Status: new ====================================================================== Date Submitted: 2011-06-19 13:08 EDT Last Modified: 2011-06-19 13:08 EDT ====================================================================== Summary: Includes should be with unix path style when CMAKE_<LANG>_USE_RESPONSE_FILE_FOR_INCLUDES is set Description: For the reactos progject, we would like to use ccache to speed up compilation.
Unfortunately, cmake uses Response files to set includes of source files (like @Cmakefiles/target.dir/includes_C.rsp) and ccache doesn't support that. Fortunately, we can set the CMAKE_<LANG>_USE_RESPONSE_FILE_FOR_INCLUDES variable to OFF and cmake will stop generating such files and will concatenate them to the flags. But it will use the windows path style, ie -IX:\some\path\to\some\header.h which is wrong. You could as well use unix path style, or double backslashes. Please find the attached patch. This shouldn't break anything, all compiler I know of support the "/" path separator. Steps to Reproduce: Create any module with MinGW (no need to use ccache) with the CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES set to OFF, and see the result. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2011-06-19 13:08 Jérôme Gardou New Issue 2011-06-19 13:08 Jérôme Gardou File Added: 0002-Use-unix-path-style-for-includes-when-CMAKE_-LANG-_U.patch ====================================================================== _______________________________________________ cmake-developers mailing list [email protected] http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers
