mirror of
https://github.com/starr-dusT/tzdb_to_nx
synced 2024-03-05 21:18:52 -08:00
CMake: Link against intl
Fixes compile issue with Apple.
This commit is contained in:
parent
c636ed91ca
commit
84dd8dd351
10
externals/tz/CMakeLists.txt
vendored
10
externals/tz/CMakeLists.txt
vendored
@ -14,14 +14,22 @@ if (NOT EXISTS "${TZ_DIR}" OR NOT EXISTS "${TZIF_LIST_FILE}")
|
|||||||
# separate directory before building.
|
# separate directory before building.
|
||||||
file(COPY ${TZ_SOURCE_DIR}/ DESTINATION ${TZ_TMP_SOURCE_DIR})
|
file(COPY ${TZ_SOURCE_DIR}/ DESTINATION ${TZ_TMP_SOURCE_DIR})
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
|
set(TZ_MAKEFLAGS "LDLIBS=-lintl")
|
||||||
|
else()
|
||||||
|
set(TZ_MAKEFLAGS)
|
||||||
|
endif()
|
||||||
|
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND
|
COMMAND
|
||||||
${GNU_MAKE} DESTDIR=${TZ_DIR} install
|
${GNU_MAKE} DESTDIR=${TZ_DIR} ${TZ_MAKEFLAGS} install
|
||||||
WORKING_DIRECTORY
|
WORKING_DIRECTORY
|
||||||
${TZ_TMP_SOURCE_DIR}
|
${TZ_TMP_SOURCE_DIR}
|
||||||
COMMAND_ERROR_IS_FATAL ANY
|
COMMAND_ERROR_IS_FATAL ANY
|
||||||
)
|
)
|
||||||
|
|
||||||
|
unset(TZ_MAKEFLAGS)
|
||||||
|
|
||||||
# Step taken by Arch Linux packaging, but Nintendo apparently skips it
|
# Step taken by Arch Linux packaging, but Nintendo apparently skips it
|
||||||
# execute_process(
|
# execute_process(
|
||||||
# COMMAND
|
# COMMAND
|
||||||
|
Loading…
x
Reference in New Issue
Block a user