From b5fc65ce3eafb5972d98f4ac2f75469893147a12 Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 5 Dec 2016 14:03:44 +0100 Subject: [PATCH] Fixed: Force c++0x for GCC and clang to be able to use std::unique_ptr and std::shared_ptr --HG-- branch : develop --- code/CMakeModules/nel.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/CMakeModules/nel.cmake b/code/CMakeModules/nel.cmake index c52590ee2..c7891917c 100644 --- a/code/CMakeModules/nel.cmake +++ b/code/CMakeModules/nel.cmake @@ -851,6 +851,9 @@ MACRO(NL_SETUP_BUILD) ENDIF() ENDIF() + # use c++0x standard to use std::unique_ptr and std::shared_ptr + ADD_PLATFORM_FLAGS("-std=c++0x") + ADD_PLATFORM_FLAGS("-D_REENTRANT") # hardening