[Cmake-commits] [cmake-commits] king committed UnixPaths.cmake 1.13 1.14

cmake-commits at cmake.org cmake-commits at cmake.org
Wed Feb 25 11:44:48 EST 2009


Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv1788/Modules/Platform

Modified Files:
	UnixPaths.cmake 
Log Message:
ENH: Re-enable system include dir suppression

This creates variable CMAKE_<LANG>_IMPLICIT_INCLUDE_DIRECTORIES to
specify implicit include directories on a per-language basis.  This
replaces the previous platform-wide variable.  It is necessary to
avoid explicit specification of -I/usr/include on some compilers
(such as HP aCC) because:

  1.) It may break ordering among system include directories defined
      internally by the compiler, thus getting wrong system headers.
  2.) It tells the compiler to treat the system include directory
      as a user include directory, enabling warnings in the headers.

See issue #8598.


Index: UnixPaths.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/UnixPaths.cmake,v
retrieving revision 1.13
retrieving revision 1.14
diff -C 2 -d -r1.13 -r1.14
*** UnixPaths.cmake	17 Jan 2008 20:54:49 -0000	1.13
--- UnixPaths.cmake	25 Feb 2009 16:44:46 -0000	1.14
***************
*** 54,57 ****
--- 54,64 ----
    )
  
+ LIST(APPEND CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES
+   /usr/include
+   )
+ LIST(APPEND CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES
+   /usr/include
+   )
+ 
  # Enable use of lib64 search path variants by default.
  SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)



More information about the Cmake-commits mailing list