diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e470c83b..d8f241bed 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -56,7 +56,8 @@ function(CREATE_TARGET target) env ${VARS_FOR_CARGO} ${Rust_CARGO} build --bin ${target} - $<$:--release> + $<$:--release> + $<$:--release> --target ${Rust_CARGO_TARGET} ${CARGO_FLAGS} ${FEATURES_ARG} diff --git a/cmake/Rust.cmake b/cmake/Rust.cmake index f8601ef34..36bc34ea3 100644 --- a/cmake/Rust.cmake +++ b/cmake/Rust.cmake @@ -19,7 +19,7 @@ else() endif() set(rust_profile $,debug,release>) -set(rust_debugflags "$<$:-g>") +set(rust_debugflags "$<$:-g>$<$:-g>") # Temporary hack to propogate CMake flags/options to build.rs. We need to get CMake to evaluate the