Skip to content

Commit

Permalink
cmake 3.28 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
PikachuHy committed Jan 7, 2024
1 parent 390a1dc commit e109273
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ else ()
elseif (${CMAKE_MINOR_VERSION} STREQUAL 27)
set(CMAKE_EXPERIMENTAL_CXX_MODULE_CMAKE_API "aa1f7df0-828a-4fcd-9afc-2dc80491aca7")
else ()
set(CXX_SCAN_FOR_MODULES ON)
# https://cmake.org/cmake/help/latest/policy/CMP0155.html#policy:CMP0155
cmake_policy(SET CMP0155 NEW)
endif ()
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_EXTENSIONS OFF)
Expand All @@ -39,7 +40,7 @@ elseif (WIN32)
target_link_libraries(pscm PUBLIC icu)
else ()
find_package(PkgConfig REQUIRED)
pkg_check_modules (ICU REQUIRED icu-i18n icu-uc icu-io IMPORTED_TARGET)
pkg_check_modules(ICU REQUIRED icu-i18n icu-uc icu-io IMPORTED_TARGET)
target_link_libraries(pscm PUBLIC PkgConfig::ICU)
endif ()

Expand Down

0 comments on commit e109273

Please sign in to comment.