mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 21:00:17 -06:00
Since it can be set in the environment when running the test suite, guard tests which are sensitive to intermediate directory strategy changes with explicit settings.
14 lines
380 B
CMake
14 lines
380 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
|
|
|
|
project(unitybuild_anon_ns CXX)
|
|
|
|
include(${CMAKE_CURRENT_SOURCE_DIR}/unitybuild_anon_ns_test_files.cmake)
|
|
|
|
write_unity_build_anon_ns_test_files(srcs)
|
|
|
|
add_library(tgt SHARED f.cxx ${srcs})
|
|
|
|
set_target_properties(tgt PROPERTIES UNITY_BUILD ON)
|
|
|
|
set_target_properties(tgt PROPERTIES UNITY_BUILD_UNIQUE_ID MY_ANON_ID)
|