File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,13 +9,18 @@ endif()
9
9
10
10
SET (CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR} /CMakeModules )
11
11
12
- PROJECT (RapidJSON CXX )
13
-
14
12
set (LIB_MAJOR_VERSION "1" )
15
13
set (LIB_MINOR_VERSION "1" )
16
14
set (LIB_PATCH_VERSION "0" )
17
15
set (LIB_VERSION_STRING "${LIB_MAJOR_VERSION} .${LIB_MINOR_VERSION} .${LIB_PATCH_VERSION} " )
18
16
17
+ if (CMAKE_VERSION VERSION_LESS 3.0 )
18
+ PROJECT (RapidJSON CXX )
19
+ else ()
20
+ cmake_policy (SET CMP0048 NEW )
21
+ PROJECT (RapidJSON VERSION "${LIB_VERSION_STRING} " LANGUAGES CXX )
22
+ endif ()
23
+
19
24
# compile in release with debug info mode by default
20
25
if (NOT CMAKE_BUILD_TYPE )
21
26
set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel." FORCE )
You can’t perform that action at this time.
0 commit comments