File tree 2 files changed +8
-10
lines changed
2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 1
1
# vim: et ts=4 sts=4 sw=4 tw=0
2
2
3
3
CMAKE_MINIMUM_REQUIRED (VERSION 3.1)
4
+
5
+ # Ensures that CMAKE_BUILD_TYPE has a default value
6
+ IF (NOT DEFINED CMAKE_BUILD_TYPE )
7
+ SET (CMAKE_BUILD_TYPE Release CACHE STRING
8
+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Coverage." )
9
+ ENDIF ()
10
+
4
11
PROJECT (jsoncpp)
5
12
ENABLE_TESTING ()
6
13
@@ -12,15 +19,6 @@ OPTION(JSONCPP_WITH_PKGCONFIG_SUPPORT "Generate and install .pc files" ON)
12
19
OPTION (JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" ON )
13
20
OPTION (BUILD_SHARED_LIBS "Build jsoncpp_lib as a shared library." OFF )
14
21
15
- # Ensures that CMAKE_BUILD_TYPE is visible in cmake-gui on Unix
16
- IF (NOT WIN32 )
17
- IF (NOT CMAKE_BUILD_TYPE )
18
- SET (CMAKE_BUILD_TYPE Release CACHE STRING
19
- "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Coverage."
20
- FORCE)
21
- ENDIF ()
22
- ENDIF ()
23
-
24
22
# Enable runtime search path support for dynamic libraries on OSX
25
23
IF (APPLE )
26
24
SET (CMAKE_MACOSX_RPATH 1)
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ environment:
10
10
build_script :
11
11
- cmake --version
12
12
- cd c:\projects\jsoncpp
13
- - cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=%CD:\=/%/install -DCMAKE_BUILD_TYPE=Release - DBUILD_SHARED_LIBS=ON .
13
+ - cmake -G "%CMAKE_GENERATOR%" -DCMAKE_INSTALL_PREFIX=%CD:\=/%/install -DBUILD_SHARED_LIBS=ON .
14
14
- cmake --build . --config Release --target install
15
15
16
16
deploy :
You can’t perform that action at this time.
0 commit comments