Optionally use precompiled headers

This commit is contained in:
Nicolas Werner 2020-05-25 13:02:31 +02:00
parent fe45c49e56
commit 4e5bd53b13

View file

@ -577,6 +577,13 @@ target_link_libraries(nheko PRIVATE
tweeny tweeny
SingleApplication::SingleApplication) SingleApplication::SingleApplication)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.16.0")
target_precompile_headers(nheko
PRIVATE
<string>
)
endif()
if(MSVC) if(MSVC)
target_link_libraries(nheko PRIVATE ntdll) target_link_libraries(nheko PRIVATE ntdll)
endif() endif()