From 05229807f0a8803b010d1aada85388f4dd034d05 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Fri, 31 May 2013 14:27:37 +0200 Subject: [PATCH] Only enable c++11 for c++ files --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ba47753..150254e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(mallocinfo) add_library(dumpmallocinfo SHARED dumpmallocinfo.cpp) target_link_libraries(dumpmallocinfo -lpthread) -add_definitions("-std=c++11") +set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11") add_executable(mallocinfo main.cpp) target_link_libraries(mallocinfo dumpmallocinfo) -- 2.7.4