aboutsummaryrefslogtreecommitdiff
path: root/ports/nuspell/cmake-disable-cli-and-docs.patch
blob: 77d5ff07647dd05e75eaa0c3030b6225b486c694 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 835ebfb..82fa335 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,7 +8,6 @@ include(GNUInstallDirs)
 include(CMakePackageConfigHelpers)
 
 find_package(ICU REQUIRED COMPONENTS uc data)
-find_package(Boost 1.48.0 REQUIRED COMPONENTS locale)
 
 get_directory_property(subproject PARENT_DIRECTORY)
 
@@ -20,8 +19,6 @@ if (subproject)
     return()
 endif()
 
-add_subdirectory(docs)
-
 function(find_catch2_from_source)
     set(Catch2_FOUND Catch2-NOTFOUND PARENT_SCOPE)
     set(catch_cmake_lists ${PROJECT_SOURCE_DIR}/external/Catch2/CMakeLists.txt)
diff --git a/src/nuspell/CMakeLists.txt b/src/nuspell/CMakeLists.txt
index a8d215f..78553c5 100644
--- a/src/nuspell/CMakeLists.txt
+++ b/src/nuspell/CMakeLists.txt
@@ -27,22 +27,6 @@ target_include_directories(nuspell
 
 target_link_libraries(nuspell PUBLIC ICU::uc ICU::data)
 
-add_executable(nuspell-bin main.cxx)
-set_target_properties(nuspell-bin PROPERTIES
-    RUNTIME_OUTPUT_DIRECTORY ../tools
-    RUNTIME_OUTPUT_NAME nuspell)
-target_compile_definitions(nuspell-bin PRIVATE
-    PROJECT_VERSION=\"${PROJECT_VERSION}\")
-target_link_libraries(nuspell-bin nuspell Boost::locale)
-if (BUILD_SHARED_LIBS AND WIN32)
-    # This should be PRE_LINK (or PRE_BUILD), so Vcpkg's POST_BUILD
-    # step (see VCPKG_APPLOCAL_DEPS) that copies dll can pick up nuspell.dll
-    # inside the folder ../tools.
-    add_custom_command(TARGET nuspell-bin PRE_LINK
-    COMMAND ${CMAKE_COMMAND} -E copy_if_different
-            $<TARGET_FILE:nuspell> $<TARGET_FILE_DIR:nuspell-bin>)
-endif()
-
 if (NOT subproject)
     install(TARGETS nuspell
         EXPORT NuspellTargets
@@ -53,5 +37,4 @@ if (NOT subproject)
     install(EXPORT NuspellTargets
         DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/nuspell
         NAMESPACE Nuspell::)
-    install(TARGETS nuspell-bin DESTINATION ${CMAKE_INSTALL_BINDIR})
 endif()