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

Commit

Permalink
CMake: Find and require intl
Browse files Browse the repository at this point in the history
It's not guaranteed for Apple systems to have this library installed, apparently, so check for it.
  • Loading branch information
lat9nq committed Jan 9, 2024
1 parent f668009 commit 1e82342
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 1e82342

Please sign in to comment.