From 20b9808f90329d0d05d8fe837cea86b4ee194272 Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Sun, 21 Aug 2022 08:40:40 +0400 Subject: Build: Use `cmstd` target instead of variable `CMAKE_STD_LIBRARY` --- CMakeLists.txt | 1 - Source/CMakeLists.txt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a50e222..4179ce5 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 6c2daec..da7f015 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} -- cgit v0.12