]> git.lyx.org Git - features.git/blobdiff - development/cmake/CMakeLists.txt
cmake: use external libintl on windows
[features.git] / development / cmake / CMakeLists.txt
index 073e80f42a215b54e1a47770280d9f862990a48f..1a70bda6e69d4c8a4befb9d2fa42f02953fd46bf 100644 (file)
@@ -116,12 +116,20 @@ find_package(ZLIB REQUIRED)
 
 if(all OR aspell)
        set(aspell TRUE CACHE TYPE STRING)
-       find_package(ASPELL REQUIRED)
+       find_package(ASPELL REQUIRED)   
 else()
        find_package(ASPELL)
 endif()
 set(aspell)
 
+if(WIN32)
+       set(use_external_libintl TRUE)
+endif()
+
+if(use_external_libintl)
+       find_package(Libintl REQUIRED)
+endif()
+
 message("")
 if(nls OR all)
        set(nls TRUE CACHE TYPE STRING)
@@ -304,7 +312,9 @@ include_directories(
        ${TOP_SRC_DIR}/boost)
 
 add_subdirectory(boost)
-add_subdirectory(intl)
+if(NOT use_external_libintl)
+       add_subdirectory(intl)
+endif()
 add_subdirectory(src)
 
 include(../Install)