Files
CMake/Tests/RustPie/Disabled/CMakeLists.txt
Baudouin Feildel 881faf67e5 Rust: Switch to building .rs files to .rlib instead of native object files
Each Rust source file given to a target is considered a separate crate
root. There's a concept of a "main crate root", which is the `.rs` file
that is given to the final linker phase in CMake. Other Rust source file
in a target are built as rlib separately.

The project can still build `.rs` files into object files by setting the
Rust_EMIT property on the desired source file.
2026-03-20 09:42:44 -04:00

13 lines
225 B
CMake

project(DisabledRustPie LANGUAGES Rust)
setup(disabled)
set_property(
TARGET
disabled_static
disabled_shared
disabled_object
disabled_RustPie
PROPERTY POSITION_INDEPENDENT_CODE OFF
)