Skip to content

Commit

Permalink
Add options for Building Installing valijson headers and remove -Werr…
Browse files Browse the repository at this point in the history
…or from CMAKE_CXX_FLAGS
  • Loading branch information
santoshmulthalli authored and tristanpenman committed Apr 8, 2016
1 parent efa2aec commit 0c645c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
@@ -1,7 +1,10 @@
cmake_minimum_required (VERSION 2.6)
project (valijson)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
option (INSTALL_HEADERS "Install valijson Headers." TRUE)
option (BUILD_EXAMPLES "Build valijson Examples." FALSE)
option (BUILD_TESTS "Build valijson Tests." FALSE)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall ")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
if(VALIJSON_CXX11_ADAPTERS STREQUAL "disabled")
message(STATUS "Building with C++11 support disabled")
Expand Down

0 comments on commit 0c645c5

Please sign in to comment.