From 195d344d9aff69877e8d7cb05cb74ce6c54eca9d Mon Sep 17 00:00:00 2001 From: Jubilee <46493976+workingjubilee@users.noreply.github.com> Date: Sat, 19 Nov 2022 21:09:43 -0800 Subject: [PATCH] Specify PROFILE when importing awooter Otherwise CMake and Corrosion get confused about how to put things together. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2e096fba..a70f1832 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -104,7 +104,7 @@ if (AWOOTER) include(FetchContent) FetchContent_Declare(Corrosion GIT_REPOSITORY https://github.com/corrosion-rs/corrosion.git GIT_TAG v0.3.0) FetchContent_MakeAvailable(Corrosion) - corrosion_import_crate(MANIFEST_PATH common/route/awooter/rust/Cargo.toml) + corrosion_import_crate(MANIFEST_PATH common/route/awooter/rust/Cargo.toml PROFILE "release") # Enable cross-lang IPO if CXX is clang. if (USE_IPO AND CMAKE_CXX_COMPILER_ID STREQUAL "Clang")