tools/corrosion/test/rustflags/cargo_config_rustflags/CMakeLists.txt
branchtransitional_engine
changeset 16050 6a3dc15b78b9
equal deleted inserted replaced
16038:7544a7d7c819 16050:6a3dc15b78b9
       
     1 cmake_minimum_required(VERSION 3.15)
       
     2 project(test_project VERSION 0.1.0)
       
     3 include(../../test_header.cmake)
       
     4 
       
     5 corrosion_import_crate(MANIFEST_PATH Cargo.toml)
       
     6 
       
     7 # Do not use `corrosion_add_target_rustflags()` here, since we want to test if the rustflag from `.cargo/config.toml`
       
     8 # is picked up.
       
     9 
       
    10 # Local rustflags should not interfere with `.cargo/config.toml`, so enable one.
       
    11 corrosion_add_target_local_rustflags(cargo_config_rustflags "--cfg=local_rustflag")