From 9046b1ff5dbc05301f6a22542ac09bb3cbc5aca9 Mon Sep 17 00:00:00 2001 From: Mike Lanighan <45465435+mlanighan@users.noreply.github.com> Date: Thu, 7 Dec 2023 09:48:52 -0600 Subject: [PATCH] remove c++ standard from compile options and define separately to compile with clang (#20) --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9945ebb..31682d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,11 @@ cmake_minimum_required(VERSION 2.8.3) project(gl_depth_sim) -add_compile_options(-std=c++14 -Wall -Wextra) + +set(CMAKE_CXX_STANDARD 14) +set(CMAKE_CXX_STANDARD_REQUIRED ON) + +add_compile_options(-Wall -Wextra) find_package(catkin REQUIRED COMPONENTS roscpp # Used for ROS examples