Skip to content

Commit

Permalink
Fixed #151: don't ignore CMAKE_CXX_FLAGS command line argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-richard committed Dec 6, 2016
1 parent 5424aa2 commit b1b3f30
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1032,10 +1032,7 @@ IF("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")

SET(
CMAKE_CXX_FLAGS
"-D_REENTRANT=1 -W -Wall -pedantic -Warray-bounds-pointer-arithmetic -Wold-style-cast -Wconversion -Wcast-align -Wno-sign-conversion"
CACHE STRING
"C++ Compiler Flags"
FORCE
"${CMAKE_CXX_FLAGS} -D_REENTRANT=1 -W -Wall -pedantic -Warray-bounds-pointer-arithmetic -Wold-style-cast -Wconversion -Wcast-align -Wno-sign-conversion"
)

SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
Expand All @@ -1050,10 +1047,7 @@ ELSE()

SET(
CMAKE_CXX_FLAGS
"-D_REENTRANT=1 -W -Wall -pedantic -Wpointer-arith -Wold-style-cast -Wconversion -Wcast-align -Wno-long-long"
CACHE STRING
"C++ Compiler Flags"
FORCE
"${CMAKE_CXX_FLAGS} -D_REENTRANT=1 -W -Wall -pedantic -Wpointer-arith -Wold-style-cast -Wconversion -Wcast-align -Wno-long-long"
)

SET(CMAKE_CXX_FLAGS_RELEASE "-O2")
Expand Down

0 comments on commit b1b3f30

Please sign in to comment.