mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
050f891d81
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.
11 lines
271 B
CMake
11 lines
271 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
|
|
|
|
enable_language(C)
|
|
|
|
add_library(foo foo.c)
|
|
target_include_directories(foo PUBLIC include)
|
|
target_precompile_headers(foo PUBLIC
|
|
"$<$<CONFIG:Debug>:${CMAKE_CURRENT_SOURCE_DIR}/include/foo.h>"
|
|
<stdio.h>
|
|
)
|