File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,20 @@ cmake_minimum_required(VERSION 2.8.0)
2
2
project (OpenXRay )
3
3
4
4
include (${PROJECT_SOURCE_DIR} /cmake/utils.cmake )
5
+
5
6
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR} /cmake )
6
7
8
+ find_program (CCACHE_FOUND ccache )
9
+ if (CCACHE_FOUND )
10
+ set_property (GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache )
11
+ set_property (GLOBAL PROPERTY RULE_LAUNCH_LINK ccache )
12
+ endif (CCACHE_FOUND )
13
+
7
14
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive --std=c++17" )
15
+ #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive") Это на будущее
16
+ #set(CMAKE_CXX_STANDARD 14) #Иначе ублюдочный симак добавляет -std=gnu++11 и ломает сборку
17
+ #set(CMAKE_CXX_STANDARD_REQUIRED ON)
18
+ #set(CMAKE_CXX_EXTENSIONS OFF)
8
19
9
20
add_definitions (-D_MT -D_CPPUNWIND -DPURE_DYNAMIC_CAST -DDECLARE_SPECIALIZATION -DM_NOSTDCONTAINERS_EXT -DUSE_OGL )
10
21
You can’t perform that action at this time.
0 commit comments