Build: Use cmstd target instead of variable CMAKE_STD_LIBRARY

This commit is contained in:
Alex Turbov 2022-08-21 08:40:40 +04:00 committed by Brad King
parent 35ad2c6e5f
commit 20b9808f90
2 changed files with 1 additions and 2 deletions

View File

@ -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")

View File

@ -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}