[Cmake-commits] [cmake-commits] king committed cmDocumentVariables.cxx 1.37 1.38
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jul 23 10:07:27 EDT 2009
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv17917/Source
Modified Files:
cmDocumentVariables.cxx
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: cmDocumentVariables.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmDocumentVariables.cxx,v
retrieving revision 1.37
retrieving revision 1.38
diff -C 2 -d -r1.37 -r1.38
*** cmDocumentVariables.cxx 8 Jul 2009 18:33:08 -0000 1.37
--- cmDocumentVariables.cxx 23 Jul 2009 14:07:24 -0000 1.38
***************
*** 1180,1184 ****
"include directories on some compilers.", false,
"Variables for Languages");
!
cm->DefineProperty
("CMAKE_<LANG>_LINKER_PREFERENCE", cmProperty::VARIABLE,
--- 1180,1205 ----
"include directories on some compilers.", false,
"Variables for Languages");
!
! cm->DefineProperty
! ("CMAKE_<LANG>_IMPLICIT_LINK_DIRECTORIES", cmProperty::VARIABLE,
! "Implicit linker search path detected for language <LANG>.",
! "Compilers typically pass directories containing language runtime "
! "libraries and default library search paths when they invoke a linker. "
! "These paths are implicit linker search directories for the compiler's "
! "language. "
! "CMake automatically detects these directories for each language and "
! "reports the results in this variable.", false,
! "Variables for Languages");
!
! cm->DefineProperty
! ("CMAKE_<LANG>_IMPLICIT_LINK_LIBRARIES", cmProperty::VARIABLE,
! "Implicit link libraries and flags detected for language <LANG>.",
! "Compilers typically pass language runtime library names and "
! "other flags when they invoke a linker. "
! "These flags are implicit link options for the compiler's language. "
! "CMake automatically detects these libraries and flags for each "
! "language and reports the results in this variable.", false,
! "Variables for Languages");
!
cm->DefineProperty
("CMAKE_<LANG>_LINKER_PREFERENCE", cmProperty::VARIABLE,
More information about the Cmake-commits
mailing list