From ded212793437f3f01f4fbb8e72c09a88c5abbb33 Mon Sep 17 00:00:00 2001 From: FrankGalligan Date: Fri, 22 Dec 2017 13:55:17 -0800 Subject: [PATCH] Update compiler_flags.cmake Removed the CMake changes. Will update the cmake in another PR. --- cmake/compiler_flags.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/compiler_flags.cmake b/cmake/compiler_flags.cmake index 8c2be6e..388e687 100644 --- a/cmake/compiler_flags.cmake +++ b/cmake/compiler_flags.cmake @@ -152,7 +152,8 @@ 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_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D${preproc_def}" PARENT_SCOPE) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D${preproc_def}" CACHE STRING "" + FORCE) endif () endfunction ()