aboutsummaryrefslogtreecommitdiff
path: root/ports/nuspell/cmake-disable-cli-and-docs.patch
blob: 8b2caa51c4ac8ed060d41b4fb0548d8ff5a63705 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 6ca0212..8c14d24 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,8 +18,6 @@ if (subproject)
     return()
 endif()
 
-add_subdirectory(docs)
-
 option(BUILD_TESTING "Build the testing tree." ON)
 if (BUILD_TESTING)
     enable_testing()
diff --git a/src/nuspell/CMakeLists.txt b/src/nuspell/CMakeLists.txt
index 22894f6..d58ad43 100644
--- a/src/nuspell/CMakeLists.txt
+++ b/src/nuspell/CMakeLists.txt
@@ -23,13 +23,6 @@ target_include_directories(nuspell
 target_link_libraries(nuspell
     PUBLIC Boost::boost ICU::uc ICU::data)
 
-add_executable(nuspell-bin main.cxx)
-set_target_properties(nuspell-bin PROPERTIES
-    OUTPUT_NAME nuspell)
-target_compile_definitions(nuspell-bin PRIVATE
-    PROJECT_VERSION=\"${PROJECT_VERSION}\")
-target_link_libraries(nuspell-bin nuspell Boost::locale)
-
 if (NOT subproject)
     install(TARGETS nuspell
         EXPORT NuspellTargets
@@ -40,5 +33,4 @@ if (NOT subproject)
     install(EXPORT NuspellTargets
         DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/nuspell
         NAMESPACE Nuspell::)
-    install(TARGETS nuspell-bin DESTINATION ${CMAKE_INSTALL_BINDIR})
 endif()