Merge pull request #15 from lat9nq/apple-2

CMake: Find and require intl
This commit is contained in:
toast2903
2024-01-09 17:25:30 -05:00
committed by GitHub
2 changed files with 5 additions and 1 deletions

View File

@@ -4,5 +4,9 @@ project(tzdb2nx VERSION 1.0)
set(CMAKE_CXX_STANDARD 20)
if (APPLE)
find_package(Intl REQUIRED)
endif()
add_subdirectory(externals)
add_subdirectory(src)

View File

@@ -15,7 +15,7 @@ if (NOT EXISTS "${TZ_DIR}" OR NOT EXISTS "${TZIF_LIST_FILE}")
file(COPY ${TZ_SOURCE_DIR}/ DESTINATION ${TZ_TMP_SOURCE_DIR})
if (APPLE)
set(TZ_MAKEFLAGS "LDLIBS=-lintl")
set(TZ_MAKEFLAGS "LDLIBS=${Intl_LIBRARY}")
else()
set(TZ_MAKEFLAGS)
endif()