--- cmake/FindWrapIconv.cmake.orig 2023-03-11 19:16:40 +++ cmake/FindWrapIconv.cmake 2023-04-19 07:05:21 @@ -18,10 +18,10 @@ check_cxx_source_compiles("${iconv_test_sources}" HAVE_ICONV) if(NOT HAVE_ICONV) - set(_req_libraries "${CMAKE_REQUIRE_LIBRARIES}") - set(CMAKE_REQUIRE_LIBRARIES "iconv") + set(_req_libraries "${CMAKE_REQUIRED_LIBRARIES}") + set(CMAKE_REQUIRED_LIBRARIES "iconv") check_cxx_source_compiles("${iconv_test_sources}" HAVE_ICONV_WITH_LIB) - set(CMAKE_REQUIRE_LIBRARIES "${_req_libraries}") + set(CMAKE_REQUIRED_LIBRARIES "${_req_libraries}") endif() add_library(WrapIconv::WrapIconv INTERFACE IMPORTED)