diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 08:40:40 +0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 09:24:49 -0400 |
commit | 20b9808f90329d0d05d8fe837cea86b4ee194272 (patch) | |
tree | 9da99545b096cc377eae6dd81f6b51b74074e44f | |
parent | 35ad2c6e5f232b2446ce11165e2076a8b0e7ce69 (diff) | |
download | cmake-20b9808f90329d0d05d8fe837cea86b4ee194272.tar.gz |
Build: Use `cmstd` target instead of variable `CMAKE_STD_LIBRARY`
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | Source/CMakeLists.txt | 2 |
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} |