mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
Fix internationalisation with CMake
This commit is contained in:
parent
86f215ef03
commit
aa55fe06c5
2 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue