mirror of
https://github.com/NaC-L/Mergen.git
synced 2026-05-12 09:40:34 +00:00
cmake updates
This commit is contained in:
Generated
+1
-1
@@ -50,7 +50,7 @@ FetchContent_Declare(linux-pe SYSTEM
|
||||
)
|
||||
FetchContent_MakeAvailable(linux-pe)
|
||||
|
||||
if(ICED_FOUND) # NOTE: unnamed condition
|
||||
if(ICED_NOT_FOUND) # NOTE: unnamed condition
|
||||
message(STATUS "Fetching Zydis (v4.1.0)...")
|
||||
FetchContent_Declare(Zydis SYSTEM
|
||||
GIT_REPOSITORY
|
||||
|
||||
@@ -1,20 +1,28 @@
|
||||
|
||||
|
||||
if (BUILD_WITH_ZYDIS)
|
||||
message(STATUS "BUILD_WITH_ZYDIS=ON; forcing Zydis backend and skipping Cargo lookup")
|
||||
add_compile_definitions(ICED_NOT_FOUND)
|
||||
return()
|
||||
endif()
|
||||
|
||||
find_program(CARGO_EXECUTABLE cargo)
|
||||
|
||||
if (NOT CARGO_EXECUTABLE)
|
||||
message("Cargo not found. Default to Zydis")
|
||||
set(ICED_NOT_FOUND TRUE CACHE BOOL "Rust/Cargo found => build the iced (Rust) backend")
|
||||
message("Cargo not found. Default to Zydis.")
|
||||
set(ICED_NOT_FOUND TRUE CACHE BOOL "Rust/Cargo not found => building with the Zydis backend")
|
||||
add_compile_definitions(ICED_NOT_FOUND)
|
||||
|
||||
return()
|
||||
endif()
|
||||
|
||||
message("Cargo found. Default to Iced")
|
||||
message("Cargo found. Default to Iced.")
|
||||
|
||||
include(FetchContent)
|
||||
|
||||
FetchContent_Declare(
|
||||
Corrosion
|
||||
GIT_REPOSITORY https://github.com/NaC-L/corrosion.git
|
||||
GIT_REPOSITORY https://github.com/NaC-L/corrosion.git # some issue with linker, i forgot, enabling flag should help?, hopefully my patch doesnt break anything
|
||||
GIT_TAG 8b991b7 # Optionally specify a commit hash, version tag or branch here
|
||||
)
|
||||
|
||||
@@ -23,5 +31,5 @@ FetchContent_MakeAvailable(Corrosion)
|
||||
corrosion_import_crate(MANIFEST_PATH icpped_rust/Cargo.toml)
|
||||
|
||||
|
||||
set(ICED_FOUND TRUE CACHE BOOL "Rust/Cargo found => build the iced (Rust) backend")
|
||||
set(ICED_FOUND TRUE CACHE BOOL "Rust/Cargo found => building with the Iced (Rust) backend")
|
||||
add_compile_definitions(ICED_FOUND)
|
||||
|
||||
Reference in New Issue
Block a user