Skip to content

Commit

Permalink
Honor the external C/CXX FLAGS
Browse files Browse the repository at this point in the history
Signed-off-by: Gary Lin <[email protected]>
  • Loading branch information
lcp committed Dec 1, 2015
1 parent 1c7debd commit 6366a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ FOREACH(DIR ${LLVM_INCLUDE_DIRS})
include_directories("${DIR}/../tools/clang/include")
ENDFOREACH()

set(CMAKE_C_FLAGS "-Wall")
set(CMAKE_CXX_FLAGS "-std=c++11 -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
endif()

add_subdirectory(examples)
Expand Down

0 comments on commit 6366a09

Please sign in to comment.