Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
bha-evs committed Mar 14, 2024
1 parent d7df98b commit d38ebc4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,14 @@ install(FILES
COMPONENT bofstd-devel
)

#list_cmake_vars_containing("")
if (PROJECT_IS_TOP_LEVEL)
set(INSTALL_GTEST OFF)
# Add a custom command to run the vcpkg list command during configuration
execute_process(
COMMAND ${CMAKE_COMMAND} -E env vcpkg list --x-install-root=./vcpkg_installed
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} # Change to your desired working directory
OUTPUT_VARIABLE DepVcpkg
)
file(APPEND ${CMAKE_BINARY_DIR}/DepManifest.txt "Vcpkg Dependencies for ${PROJECT_NAME}:\n")
file(APPEND ${CMAKE_BINARY_DIR}/DepManifest.txt "${DepVcpkg}")
execute_process(
COMMAND ${CMAKE_COMMAND} -E env vcpkg list --x-install-root=./vcpkg_installed
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} # Change to your desired working directory
OUTPUT_VARIABLE DepVcpkg
)
file(APPEND ${CMAKE_BINARY_DIR}/DepManifest.txt "Vcpkg Dependencies for ${PROJECT_NAME}:\n")
file(APPEND ${CMAKE_BINARY_DIR}/DepManifest.txt "${DepVcpkg}")
endif()

0 comments on commit d38ebc4

Please sign in to comment.