summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCXXInformation.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-04-11 20:55:49 (GMT)
committerBrad King <brad.king@kitware.com>2006-04-11 20:55:49 (GMT)
commit08289893b8590be41d0541af7644e737035aee54 (patch)
tree8ad52af77e4837c0f7fd936b6c52ca083f66c0c0 /Modules/CMakeCXXInformation.cmake
parente380bad5f6fbe37048e3f06e125e2938da9ffc68 (diff)
downloadCMake-08289893b8590be41d0541af7644e737035aee54.zip
CMake-08289893b8590be41d0541af7644e737035aee54.tar.gz
CMake-08289893b8590be41d0541af7644e737035aee54.tar.bz2
ENH: Split CMAKE_STANDARD_LIBRARIES into per-language variables CMAKE_<lang>_STANDARD_LIBRARIES. This is needed to get programmable language support working with Visual Studio generators. It makes sense anyway.
Diffstat (limited to 'Modules/CMakeCXXInformation.cmake')
-rw-r--r--Modules/CMakeCXXInformation.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeCXXInformation.cmake b/Modules/CMakeCXXInformation.cmake
index 6e16e4a..8d05933 100644
--- a/Modules/CMakeCXXInformation.cmake
+++ b/Modules/CMakeCXXInformation.cmake
@@ -104,6 +104,11 @@ IF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
ENDIF(NOT CMAKE_NOT_USING_CONFIG_FLAGS)
+IF(CMAKE_CXX_STANDARD_LIBRARIES_INIT)
+ SET(CMAKE_CXX_STANDARD_LIBRARIES "${CMAKE_CXX_STANDARD_LIBRARIES_INIT}"
+ CACHE STRING "Libraries linked by defalut with all C++ applications.")
+ MARK_AS_ADVANCED(CMAKE_CXX_STANDARD_LIBRARIES)
+ENDIF(CMAKE_CXX_STANDARD_LIBRARIES_INIT)
INCLUDE(CMakeCommonLanguageInclude)