summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorClemens Wasser <clemens.wasser@gmail.com>2023-06-17 11:11:26 (GMT)
committerClemens Wasser <clemens.wasser@gmail.com>2023-06-22 16:11:45 (GMT)
commit90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66 (patch)
tree2e8f3eb815c090e8d68cd5c3251e17a0137a4dbd /Tests
parent30c882827ec6f7b26fe07e5fba42f1a7400e9b36 (diff)
downloadCMake-90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66.zip
CMake-90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66.tar.gz
CMake-90dec6e9cc04f1e049ea35e2eaf7bf33f05f2d66.tar.bz2
CMakeLibTests: Precompile common expensive headers
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CMakeLib/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/CMakeLib/CMakeLists.txt b/Tests/CMakeLib/CMakeLists.txt
index b22d76d..fc3c23b 100644
--- a/Tests/CMakeLib/CMakeLists.txt
+++ b/Tests/CMakeLib/CMakeLists.txt
@@ -68,6 +68,10 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/testUVProcessChainInput.txt" "HELLO WORL
create_test_sourcelist(CMakeLib_TEST_SRCS CMakeLibTests.cxx ${CMakeLib_TESTS})
add_executable(CMakeLibTests ${CMakeLib_TEST_SRCS})
target_link_libraries(CMakeLibTests CMakeLib CTestLib)
+if(CMake_BUILD_PCH)
+ target_precompile_headers(CMakeLibTests PRIVATE "<iostream>" "<cm3p/uv.h>")
+ target_compile_definitions(CMakeLibTests PRIVATE "NOMINMAX")
+endif()
set_property(TARGET CMakeLibTests PROPERTY C_CLANG_TIDY "")
set_property(TARGET CMakeLibTests PROPERTY CXX_CLANG_TIDY "")