Specify PROFILE when importing awooter

Otherwise CMake and Corrosion get confused about how to put things together.
This commit is contained in:
Jubilee 2022-11-19 21:09:43 -08:00 committed by Lofty
parent 8052a3eea6
commit a579b5852a

View File

@ -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")