Commit aa55fe06 authored by François Grisez's avatar François Grisez
Browse files

Fix internationalisation with CMake

parent 86f215ef
......@@ -145,7 +145,7 @@ endif()
if(MSVC)
include_directories(${MSVC_INCLUDE_DIR})
endif()
if(INTL_FOUND)
if(GETTEXT_FOUND)
set(HAVE_GETTEXT 1)
add_definitions("-DENABLE_NLS")
endif()
......
......@@ -84,9 +84,10 @@ endif()
set_target_properties(linphone-gtk PROPERTIES OUTPUT_NAME linphone LINKER_LANGUAGE CXX)
target_include_directories(linphone-gtk PUBLIC ${GTK2_INCLUDE_DIRS} ${INTL_INCLUDE_DIRS})
target_link_libraries(linphone-gtk linphone ${GTK2_LIBRARIES})
if(INTL_LIBRARIES)
if(GETTEXT_FOUND)
target_link_libraries(linphone-gtk ${INTL_LIBRARIES})
endif()
if(WIN32)
target_link_libraries(linphone-gtk Wininet)
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment