mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -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.
16 lines
375 B
CMake
16 lines
375 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
|
|
include/foo.h
|
|
<stdio.h>
|
|
\"string.h\"
|
|
)
|
|
|
|
add_executable(foobar foobar.c)
|
|
target_link_libraries(foobar foo)
|
|
set_target_properties(foobar PROPERTIES DISABLE_PRECOMPILE_HEADERS ON)
|