[Cmake-commits] [cmake-commits] king committed SystemInformation.in 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Jul 23 10:07:29 EDT 2009


Update of /cvsroot/CMake/CMake/Tests/SystemInformation
In directory public:/mounts/ram/cvs-serv17917/Tests/SystemInformation

Modified Files:
	SystemInformation.in 
Log Message:
ENH: Implicit link info for C, CXX, and Fortran

This teaches CMake to detect implicit link information for C, C++, and
Fortran compilers.  We detect the implicit linker search directories and
implicit linker options for UNIX-like environments using verbose output
from compiler front-ends.  We store results in new variables called

  CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES
  CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES

The implicit libraries can contain linker flags as well as library
names.


Index: SystemInformation.in
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/SystemInformation/SystemInformation.in,v
retrieving revision 1.6
retrieving revision 1.7
diff -C 2 -d -r1.6 -r1.7
*** SystemInformation.in	15 Sep 2006 18:09:10 -0000	1.6
--- SystemInformation.in	23 Jul 2009 14:07:25 -0000	1.7
***************
*** 87,88 ****
--- 87,95 ----
  CMAKE_C_LINK_EXECUTABLE == "${CMAKE_C_LINK_EXECUTABLE}"
  CMAKE_CXX_LINK_EXECUTABLE == "${CMAKE_CXX_LINK_EXECUTABLE}"
+ 
+ // implicit link info
+ CMAKE_C_IMPLICIT_LINK_LIBRARIES == "${CMAKE_C_IMPLICIT_LINK_LIBRARIES}"
+ CMAKE_C_IMPLICIT_LINK_DIRECTORIES == "${CMAKE_C_IMPLICIT_LINK_DIRECTORIES}"
+ CMAKE_CXX_IMPLICIT_LINK_LIBRARIES == "${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES}"
+ CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES == "${CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES}"
+ 



More information about the Cmake-commits mailing list