diff --git a/CMakeLists.txt b/CMakeLists.txt
index 52829291bb0a8b9243390997fedae017f38ba0a2..5705b3b40e929d6392a54d0079a6be01a451e1c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -145,6 +145,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 6d0015a2033c54bbf738360c886b16cc27648d14..b68196cdd713e8469bf7e6f2d7dbe1c058f68af8 100644
--- a/config.h.cmake
+++ b/config.h.cmake
@@ -41,3 +41,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 8b972bbcc114d8fe021e3b7a44a3bbbdd986946f..cdb0b84ae653e048d9b929afef446017dafdfdd1 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 91ec2fdba77ed0eacdf8620d5cff9e5b4bd60bba..963299881e76976e171b50cbc3f2bb21e217d3cd 100644
--- a/gtk/CMakeLists.txt
+++ b/gtk/CMakeLists.txt
@@ -76,10 +76,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()