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.
20 lines
406 B
CMake
20 lines
406 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
|
|
|
|
enable_language(C)
|
|
enable_language(CXX)
|
|
|
|
if(CMAKE_CXX_COMPILE_OPTIONS_USE_PCH)
|
|
add_definitions(-DHAVE_PCH_SUPPORT)
|
|
endif()
|
|
|
|
add_executable(main
|
|
main.cpp
|
|
empty.c
|
|
pch-included.cpp
|
|
)
|
|
|
|
target_precompile_headers(main PRIVATE $<$<COMPILE_LANGUAGE:CXX>:${CMAKE_CURRENT_SOURCE_DIR}/pch.h>)
|
|
|
|
enable_testing()
|
|
add_test(NAME main COMMAND main)
|