Skip to content

Commit

Permalink
czmq: fix build step (#1908)
Browse files Browse the repository at this point in the history
Avoid it getting always triggered because of missing `src/platform.h` (removed during configure step).
  • Loading branch information
benoit-pierre authored Aug 18, 2024
1 parent 93cf3e0 commit 3cc725c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions thirdparty/czmq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ if(ANDROID)
list(APPEND PATCH_FILES android.patch)
endif()

# Pre-emptively remove `src/platform.h`: this is normaly done by
# `CMakeLists.txt` at configure time, and wreaks havoc with `build.d`
# generation. Since the later is done before configuring, a missing
# `src/platform.h` would endlessly trigger a new czmq build.
list(APPEND PATCH_CMD COMMAND rm src/platform.h)

list(APPEND CMAKE_ARGS
-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}
# Project options.
Expand All @@ -28,6 +34,7 @@ external_project(
DOWNLOAD URL 471e9ec120fc66a2fe2aae14359e3cfa
https://github.com/zeromq/czmq/releases/download/v4.2.1/czmq-4.2.1.tar.gz
PATCH_FILES ${PATCH_FILES}
PATCH_COMMAND ${PATCH_CMD}
CMAKE_ARGS ${CMAKE_ARGS}
BUILD_COMMAND ${BUILD_CMD}
INSTALL_COMMAND ${INSTALL_CMD}
Expand Down

0 comments on commit 3cc725c

Please sign in to comment.