Skip to content
This repository has been archived by the owner on Apr 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #15 from lat9nq/apple-2
Browse files Browse the repository at this point in the history
CMake: Find and require intl
  • Loading branch information
lat9nq committed Jan 9, 2024
2 parents f668009 + 1e82342 commit 404d390
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
2 changes: 1 addition & 1 deletion externals/tz/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 404d390

Please sign in to comment.