From 23c451dfd57d994a445c6f90728c173580b12b24 Mon Sep 17 00:00:00 2001 From: "k.ido" <13773226+k-ido@users.noreply.github.com> Date: Tue, 20 Aug 2024 16:18:00 +0900 Subject: [PATCH] add CXX_FLAGS in gcc.cmake --- config/gcc.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/gcc.cmake b/config/gcc.cmake index 2d7b08df..92d13423 100644 --- a/config/gcc.cmake +++ b/config/gcc.cmake @@ -3,4 +3,6 @@ set(CMAKE_C_COMPILER "gcc" CACHE STRING "" FORCE) set(CMAKE_CXX_COMPILER "g++" CACHE STRING "" FORCE) set(CMAKE_C_FLAGS_DEBUG "-g -O0 -Wall -Wformat -Werror=format-security") set(CMAKE_C_FLAGS_RELEASE "-O2 -Wno-unknown-pragmas ") +set(CMAKE_CXX_FLAGS_DEBUG "-g -O0 -Wall -Wformat -Werror=format-security") +set(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wno-unknown-pragmas ") set(CMAKE_Fortran_COMPILER "gfortran" CACHE STRING "" FORCE)