Skip to content

Commit d5da513

Browse files
authored
Merge pull request #3 from Zegeri/clean
Precompile stdafx/pch headers for faster compilation and fix a mistake
2 parents 0fe4d3e + 4c0a5ba commit d5da513

File tree

18 files changed

+4242
-14
lines changed

18 files changed

+4242
-14
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ project(OpenXRay)
44
include(${PROJECT_SOURCE_DIR}/cmake/utils.cmake)
55

66
set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
7+
include(cotire)
78

89
find_program(CCACHE_FOUND ccache)
910
if(CCACHE_FOUND)
1011
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
1112
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
13+
set(ENV{CCACHE_SLOPPINESS} pch_defines,time_macros)
1214
endif(CCACHE_FOUND)
1315

1416
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")

0 commit comments

Comments
 (0)