mirror of
https://github.com/JakeHillion/object-introspection.git
synced 2024-11-09 21:24:14 +00:00
Disable PCH
This commit is contained in:
parent
cdb70e8008
commit
60e87735c8
@ -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})
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user