Skip to content

Commit

Permalink
revert use of CPM for saucer as CPM cannot handle patches unlike Fetc…
Browse files Browse the repository at this point in the history
…hContent.

context: cpm-cmake/CPM.cmake#618
  • Loading branch information
atsushieno committed Dec 26, 2024
1 parent 5ec53d9 commit b85e2b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tools/remidy-plugin-host/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ add_executable(remidy-plugin-host)
#set(saucer_backend "Qt6")
set(saucer_modules ON)

CPMAddPackage(
NAME saucer
cmake_path(SET SAUCER_PATCH_FILE NORMALIZE "${CMAKE_CURRENT_SOURCE_DIR}/../../external/saucer-disable-polyfill-expected.patch")
FetchContent_Declare(saucer
GIT_TAG 24ec76e09ffe26287d7ac3978dce95446e924625
GIT_REPOSITORY "https://github.com/saucer/saucer"
PATCHES ../../external/saucer-disable-polyfill-expected.patch
PATCH_COMMAND git apply "${SAUCER_PATCH_FILE}"
UPDATE_DISCONNECTED 1 # https://stackoverflow.com/questions/73718516/
)
FetchContent_MakeAvailable(saucer)

target_include_directories(remidy-plugin-host PRIVATE
../../external/choc
Expand Down

0 comments on commit b85e2b0

Please sign in to comment.