From 4e5bd53b1329896da6b4344815def48c7800f198 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Mon, 25 May 2020 13:02:31 +0200 Subject: [PATCH] Optionally use precompiled headers --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a6a284b..0e0a5518 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -577,6 +577,13 @@ target_link_libraries(nheko PRIVATE tweeny SingleApplication::SingleApplication) +if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0") +target_precompile_headers(nheko + PRIVATE + + ) +endif() + if(MSVC) target_link_libraries(nheko PRIVATE ntdll) endif()