Skip to content

Commit b676047

Browse files
committed
libintl is required on FreeBSD as well
1 parent 0794fa8 commit b676047

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ if (MINIZIP_FOUND)
404404
include_directories(${MINIZIP_INCLUDE_DIR})
405405
endif (MINIZIP_FOUND)
406406

407-
if (APPLE OR WIN32)
407+
if (APPLE OR WIN32 OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
408408
find_package(intl REQUIRED)
409409
include_directories(${INTL_INCLUDE_DIR})
410-
endif (APPLE OR WIN32)
410+
endif (APPLE OR WIN32 OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
411411

412412
find_package(SDL REQUIRED)
413413
include_directories(${SDL_INCLUDE_DIR})

‎src/CMakeLists.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ endif (DEFINED WL_EXTRA_LINK_LIBRARIES)
128128
target_link_libraries(widelands widelands_all)
129129
target_link_libraries(widelands ${SDL_LIBRARY})
130130

131-
if (APPLE OR WIN32)
131+
if (APPLE OR WIN32 OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
132132
target_link_libraries(widelands_all ${INTL_LIBRARY})
133-
endif (APPLE OR WIN32)
133+
endif (APPLE OR WIN32 OR CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
134134

135135
if (WIN32)
136136
if (DEFINED MSVC)

0 commit comments

Comments
 (0)