Disable PCH

This commit is contained in:
Alastair Robertson 2023-05-22 05:12:42 -07:00 committed by Alastair Robertson
parent cdb70e8008
commit 60e87735c8
2 changed files with 0 additions and 21 deletions

View File

@ -359,25 +359,6 @@ if (STATIC_LINK)
target_link_libraries(oitb -static)
endif()
## Performance improvements
### Precompile headers
target_precompile_headers(oicore
PUBLIC <fstream>
PUBLIC <iostream>
PUBLIC <map>
PUBLIC <memory>
PUBLIC <set>
PUBLIC <string>
PUBLIC <vector>
PUBLIC <glog/logging.h>
)
foreach(TARGET oil oip oid oitb)
target_precompile_headers(${TARGET} REUSE_FROM oicore)
endforeach()
# Add a hook for custom CMake rules
if (DEFINED ENV{CMAKE_HOOK})
include($ENV{CMAKE_HOOK})

View File

@ -32,8 +32,6 @@ function(cpp_unittest)
${TEST_DEPS}
)
target_precompile_headers(${TEST_NAME} REUSE_FROM oicore)
gtest_discover_tests(${TEST_NAME} PROPERTIES ${TEST_PROPERTIES})
endfunction()