summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Turbov <i.zaufi@gmail.com>2022-08-21 08:40:40 +0400
committerBrad King <brad.king@kitware.com>2022-09-22 09:24:49 -0400
commit20b9808f90329d0d05d8fe837cea86b4ee194272 (patch)
tree9da99545b096cc377eae6dd81f6b51b74074e44f
parent35ad2c6e5f232b2446ce11165e2076a8b0e7ce69 (diff)
downloadcmake-20b9808f90329d0d05d8fe837cea86b4ee194272.tar.gz
Build: Use `cmstd` target instead of variable `CMAKE_STD_LIBRARY`
-rw-r--r--CMakeLists.txt1
-rw-r--r--Source/CMakeLists.txt2
2 files changed, 1 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index a50e222396..4179ce5b9d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -407,7 +407,6 @@ macro(CMAKE_BUILD_UTILITIES)
#---------------------------------------------------------------------
# Build CMake std library for CMake and CTest.
- set(CMAKE_STD_LIBRARY cmstd)
add_subdirectory(Utilities/std)
CMAKE_SET_TARGET_FOLDER(cmstd "Utilities/std")
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index 6c2daecd82..da7f015444 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -751,8 +751,8 @@ target_include_directories(
target_link_libraries(
CMakeLib
PUBLIC
+ cmstd
cmsys
- ${CMAKE_STD_LIBRARY}
${CMAKE_EXPAT_LIBRARIES} ${CMAKE_ZLIB_LIBRARIES}
${CMAKE_TAR_LIBRARIES}
${CMAKE_CURL_LIBRARIES}