Skip to content

Commit

Permalink
Comment out copy in cmake list
Browse files Browse the repository at this point in the history
  • Loading branch information
michalchecinski committed Apr 19, 2024
1 parent 54dab6c commit 1cde15b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ jobs:
$DBOOST_PATH="C:\vcpkg\installed\x64-windows\include\boost"
$DTARGET="include/libbitwarden_c.dll"
cmake .. -DNLOHMANN=$DNLOHMANN_PATH -DBOOST=$DBOOST_PATH -DTARGET=include/libbitwarden_c.dll -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/languages/cpp/
# cmake --build .
cmake --build .
shell: pwsh

- name: Copy artifacts
Expand Down
12 changes: 6 additions & 6 deletions languages/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ add_library(BitwardenClient SHARED ${SOURCES} ${SCHEMAS_SOURCE})
set(LIB_BITWARDEN_C "${CMAKE_SOURCE_DIR}/${TARGET}")

# Copy the library to the build directory before building
add_custom_command(
TARGET BitwardenClient PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${LIB_BITWARDEN_C}
$<TARGET_FILE_DIR:BitwardenClient>
)
# add_custom_command(
# TARGET BitwardenClient PRE_BUILD
# COMMAND ${CMAKE_COMMAND} -E copy
# ${LIB_BITWARDEN_C}
# $<TARGET_FILE_DIR:BitwardenClient>
# )

# Link libraries
target_link_libraries(BitwardenClient PRIVATE ${LIB_BITWARDEN_C})

0 comments on commit 1cde15b

Please sign in to comment.