Skip to content

Commit

Permalink
Try fixing libquotient CI
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFella committed Sep 14, 2024
1 parent 2e0dfa6 commit 1c2b33a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ project(vodozemac-cpp VERSION 1.0.0 LANGUAGES CXX)
set(ECM_MODULE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
list(APPEND CMAKE_MODULE_PATH ${ECM_MODULE_DIR})

# Work around some weird CI problems; TODO: Figure out what's going on there
option(CI_BUILD FALSE)

if (${CI_BUILD})
set(BUILD_FOLDER_PREFIX "x64/Debug/")
endif()

include(ECMSetupVersion)
ecm_setup_version(PROJECT
VARIABLE_PREFIX VODOZEMAC
Expand Down Expand Up @@ -55,7 +62,7 @@ if(WIN32)
${CMAKE_COMMAND} -E copy ${CMAKE_BINARY_DIR}/cargo/build/${Rust_CARGO_TARGET}/cxxbridge/vodozemac/src/lib.rs.h ${CMAKE_BINARY_DIR}/vodozemac.h)
else()
add_custom_target(copy_header ALL DEPENDS cargo-build_vodozemac BYPRODUCTS ${CMAKE_BINARY_DIR}/vodozemac.h VERBATIM COMMAND
cp -L ${CMAKE_BINARY_DIR}/cargo/build/${Rust_CARGO_TARGET}/cxxbridge/vodozemac/src/lib.rs.h ${CMAKE_BINARY_DIR}/vodozemac.h)
cp -L ${CMAKE_BINARY_DIR}/${BUILD_FOLDER_PREFIX}cargo/build/${Rust_CARGO_TARGET}/cxxbridge/vodozemac/src/lib.rs.h ${CMAKE_BINARY_DIR}/vodozemac.h)
endif()

install(TARGETS vodozemac-cpp EXPORT VodozemacTargets ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
Expand Down

0 comments on commit 1c2b33a

Please sign in to comment.