Skip to content

Commit

Permalink
CMake: Search for libintl.
Browse files Browse the repository at this point in the history
  • Loading branch information
rilian-la-te committed Apr 22, 2017
1 parent c0a164d commit d4d9fe7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ set(GETTEXT_PACKAGE "musl-locales")
set(MUSL_LOCPATH ${CMAKE_INSTALL_DATAROOTDIR}/i18n/locales/musl CACHE PATH "Locales directory" FORCE)
configure_file(config.h.in config.h)
configure_file(locale.in 00locale.sh)
find_package(Intl)
set(LOCALE_SOURCES locale.c categories.c categories.h config.h)
add_executable(locale ${LOCALE_SOURCES})
if(Intl_LIBRARIES)
target_link_libraries(locale ${Intl_LIBRARIES})
endif()
target_compile_options(locale
PRIVATE $<$<COMPILE_LANGUAGE:C>:-std=gnu11 -Wno-pedantic>
)
Expand Down

0 comments on commit d4d9fe7

Please sign in to comment.