From bdf0416c84021ea55e7480502eecec9fc47d4838 Mon Sep 17 00:00:00 2001 From: FrankGalligan Date: Fri, 22 Dec 2017 13:56:46 -0800 Subject: [PATCH] Update compiler_flags.cmake CXX --- cmake/compiler_flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/compiler_flags.cmake b/cmake/compiler_flags.cmake index 388e687..c9a25dc 100644 --- a/cmake/compiler_flags.cmake +++ b/cmake/compiler_flags.cmake @@ -152,7 +152,7 @@ function (add_cxx_preproc_definition preproc_def) string(FIND "${CMAKE_CXX_FLAGS}" "${preproc_def}" PREPROC_DEF_FOUND) if (${PREPROC_DEF_FOUND} EQUAL -1) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D${preproc_def}" CACHE STRING "" + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${preproc_def}" CACHE STRING "" FORCE) endif () endfunction ()