-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump version to 1.3.0 * Use new vcpkg bootstrap script * Bump vcpkg baselines * Use new traceEnabled constexpr for verilated models
- Loading branch information
Showing
4 changed files
with
51 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
if(NOT SKIP_VCPKG AND NOT DEFINED CMAKE_TOOLCHAIN_FILE) | ||
include(FetchContent) | ||
|
||
if(WIN32) | ||
set(VCPKG vcpkg.exe) | ||
elseif(LINUX) | ||
if(EXISTS "/etc/alpine-release") | ||
set(VCPKG vcpkg-musl) | ||
else() | ||
set(VCPKG vcpkg-glibc) | ||
endif() | ||
elseif(APPLE) | ||
set(VCPKG vcpkg-macos) | ||
else() | ||
message(FATAL_ERROR "Cannot bootstrap vcpkg: Unsupported platform") | ||
endif() | ||
|
||
FetchContent_Declare(vcpkg | ||
URL https://github.com/microsoft/vcpkg-tool/releases/latest/download/${VCPKG} | ||
DOWNLOAD_NO_EXTRACT TRUE | ||
) | ||
|
||
FetchContent_MakeAvailable(vcpkg) | ||
set(VCPKG ${vcpkg_SOURCE_DIR}/${VCPKG}) | ||
|
||
file(CHMOD ${VCPKG} PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE) | ||
set(ENV{VCPKG_ROOT} ${vcpkg_SOURCE_DIR}) | ||
execute_process(COMMAND ${VCPKG} bootstrap-standalone) | ||
|
||
if(NOT WIN32) | ||
file(RENAME ${VCPKG} ${vcpkg_SOURCE_DIR}/vcpkg) | ||
endif() | ||
|
||
set(CMAKE_TOOLCHAIN_FILE | ||
${vcpkg_SOURCE_DIR}/scripts/buildsystems/vcpkg.cmake | ||
CACHE FILEPATH "Vcpkg toolchain file" | ||
) | ||
set(VCPKG_ROOT_DIR ${vcpkg_SOURCE_DIR} CACHE PATH "Vcpkg Root Directory") | ||
endif() | ||
|
||
if(DEFINED VCPKG_ROOT_DIR) | ||
add_custom_target(UpdateVcpkgBaseline | ||
${VCPKG_ROOT_DIR}/vcpkg x-update-baseline | ||
) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters