[lokalize] /: Make hunspell a required dependency.
Michael Jansen
kde at michael-jansen.biz
Sat Mar 2 21:15:10 UTC 2013
Git commit b851275be8ca68e53b1d3bc48c15a40663c3a18a by Michael Jansen.
Committed on 02/03/2013 at 22:14.
Pushed by mjansen into branch 'master'.
Make hunspell a required dependency.
Having one optional app in a repo and nothing else makes not sense.
CCMAIL: kde-buildsystem at kde.org
M +12 -9 CMakeLists.txt
http://commits.kde.org/lokalize/b851275be8ca68e53b1d3bc48c15a40663c3a18a
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5467cf4..f1792e8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -7,14 +7,17 @@ include(MacroLibrary)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
-macro_optional_find_package(HUNSPELL)
-macro_log_feature(HUNSPELL_FOUND "HUNSPELL" "Library used for stemming" "http://hunspell.sourceforge.net/" FALSE "" "Required to build Lokalize.")
+find_package(HUNSPELL)
+set_package_properties(
+ HUNSPELL PROPERTIES
+ DESCRIPTION "Library used for stemming"
+ URL "http://hunspell.sourceforge.net/"
+ TYPE REQUIRED
+ PURPOSE "Required to build Lokalize.")
-if(HUNSPELL_FOUND OR WIN32)
- include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
- add_subdirectory(doc)
- add_subdirectory(src)
- add_subdirectory(scripts)
- add_subdirectory(icons)
-endif()
+include_directories (${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} ${KDE4_INCLUDES})
+add_subdirectory(doc)
+add_subdirectory(src)
+add_subdirectory(scripts)
+add_subdirectory(icons)
#add_subdirectory(strigi-analyzer)
More information about the Kde-buildsystem
mailing list