vcpkg/ports/nuspell/cmake-disable-cli-and-docs.patch

47 lines
1.6 KiB
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a98ed58..3756bae 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -19,8 +19,6 @@ if (subproject)
return()
endif()
-add_subdirectory(docs)
-
2020-04-08 07:36:25 +08:00
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 9535686..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)
-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()