Skip to content

Instantly share code, notes, and snippets.

@geor-kasapidi
Created February 27, 2025 07:29
Show Gist options
  • Save geor-kasapidi/4a2f72dd35b80d0945f9603b88f9b44d to your computer and use it in GitHub Desktop.
Save geor-kasapidi/4a2f72dd35b80d0945f9603b88f9b44d to your computer and use it in GitHub Desktop.
set(CPM_DOWNLOAD_VERSION 0.40.2)
set(CPM_DOWNLOAD_LOCATION "${CMAKE_BINARY_DIR}/cmake/CPM_${CPM_DOWNLOAD_VERSION}.cmake")
if(NOT (EXISTS ${CPM_DOWNLOAD_LOCATION}))
message(STATUS "Downloading CPM.cmake...")
file(DOWNLOAD https://github.com/cpm-cmake/CPM.cmake/releases/download/v${CPM_DOWNLOAD_VERSION}/CPM.cmake ${CPM_DOWNLOAD_LOCATION})
endif()
include(${CPM_DOWNLOAD_LOCATION})
CPMAddPackage(
NAME volk
GITHUB_REPOSITORY zeux/volk
GIT_TAG 1.4.304
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment