Skip to content

Commit

Permalink
Merge pull request #23 from diizzyy/patch-1
Browse files Browse the repository at this point in the history
cmake: Always require (lib)intl
  • Loading branch information
folkertvanheusden authored Oct 26, 2024
2 parents ab747d3 + 2daaaf8 commit 28087e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ add_executable(httping ${SOURCES})

target_link_libraries(httping m)

if (USE_GETTEXT)
find_package(Intl REQUIRED)
target_link_libraries(httping ${Intl_LIBRARIES})
target_include_directories(httping PUBLIC ${Intl_INCLUDE_DIRS})

if (USE_GETTEXT)
find_package(Gettext REQUIRED)
include_directories(${INTL_INCLUDE_DIRS})
link_directories(${INTL_LIBRARY_DIRS})
endif()

set(CMAKE_BUILD_TYPE Debug)
Expand Down

0 comments on commit 28087e7

Please sign in to comment.