don't mix C and CXX Flags in CMake

- otherwise clang will report error:
   invalid argument '-std=c++11' not allowed with 'C/ObjC'
pull/21/head
Marcus Georgi 2017-06-01 10:16:20 +02:00
parent ecc627cb8a
commit 6d90fa4d48
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ project(gattlib)
find_package(PkgConfig REQUIRED)
# Show all the warnings
set(CMAKE_C_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
# Expose 'gattlib.h' to all sub-directories
include_directories(include)