From e07a41e6184fa3694be8655e155c86b38a676e20 Mon Sep 17 00:00:00 2001 From: JinWang An Date: Tue, 12 Mar 2024 14:20:53 +0900 Subject: Fix from -std=gnu++0x to -std=c++14 for gtest 1.14.0 version upgrade Change-Id: I194a4155256c5def726bfdf621da0c7bf5c2e3e6 Signed-off-by: JinWang An --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d15fc51..6c880d2 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ SET(DUST "OFF") SET(SENSORHUB "ON") # Common Options -SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -fomit-frame-pointer -std=gnu++0x") +SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -O2 -fomit-frame-pointer -std=c++14") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdata-sections -ffunction-sections") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fdiagnostics-color") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--gc-section -Wl,--print-gc-section") -- cgit v1.2.3