File tree 2 files changed +5
-8
lines changed
2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,10 @@ OPTION(JSONCPP_WITH_PKGCONFIG_SUPPORT "Generate and install .pc files" ON)
12
12
OPTION (JSONCPP_WITH_CMAKE_PACKAGE "Generate and install cmake package files" ON )
13
13
OPTION (BUILD_SHARED_LIBS "Build jsoncpp_lib as a shared library." OFF )
14
14
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 ()
15
+ # Ensures that CMAKE_BUILD_TYPE has a default value
16
+ IF (NOT DEFINED CMAKE_BUILD_TYPE )
17
+ SET (CMAKE_BUILD_TYPE Release CACHE STRING
18
+ "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel Coverage." )
22
19
ENDIF ()
23
20
24
21
# Enable runtime search path support for dynamic libraries on OSX
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