diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5781ed29e639117876980d2ebed6e2ddb44154a3..20f06bc802ef55ac48a7a496b7654a10dc6ea447 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -164,6 +164,10 @@ endif()
 if(MSVC)
 	include_directories(${MSVC_INCLUDE_DIR})
 endif()
+if(INTL_FOUND)
+	set(HAVE_GETTEXT 1)
+	add_definitions("-DENABLE_NLS")
+endif()
 
 add_definitions("-DIN_LINPHONE")
 
diff --git a/config.h.cmake b/config.h.cmake
index 3adb3cae41433e4a664134cb4c495f70abcde2fd..0620f8e291ff99ba441f5eff6f5fd2dfcd575e09 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -42,3 +42,4 @@
 #cmakedefine HAVE_ZLIB 1
 #cmakedefine HAVE_CU_GET_SUITE 1
 #cmakedefine HAVE_CU_CURSES 1
+#cmakedefine HAVE_GETTEXT 1
diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt
index ce9eb1bc50ef34da40916e26d68017927af6a7a6..48b70e4986dd975bb7c0d22cf8870d0b3768d6d0 100644
--- a/coreapi/CMakeLists.txt
+++ b/coreapi/CMakeLists.txt
@@ -144,6 +144,9 @@ endif()
 if(WIN32 AND NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsPhone")
 	list(APPEND LIBS shlwapi)
 endif()
+if(GETTEXT_FOUND)
+	list(APPEND LIBS ${INTL_LIBRARIES})
+endif()
 
 if(ENABLE_STATIC)
 	add_library(linphone STATIC ${SOURCE_FILES} ${GENERATED_SOURCE_FILES})
diff --git a/gtk/CMakeLists.txt b/gtk/CMakeLists.txt
index d7e103fb42c77a19d189f9f6ee21d7841aec282c..93db24650a2e9696ee61e168de2385281d0fb23b 100644
--- a/gtk/CMakeLists.txt
+++ b/gtk/CMakeLists.txt
@@ -72,10 +72,6 @@ if(WIN32)
 	list(APPEND SOURCE_FILES linphone.rc)
 endif()
 
-if(GETTEXT_FOUND)
-	add_definitions("-DENABLE_NLS")
-endif()
-
 if(WIN32)
 	add_executable(linphone-gtk WIN32 ${SOURCE_FILES})
 else()