Update compiler_flags.cmake

Removed the CMake changes. Will update the cmake in another PR.
This commit is contained in:
FrankGalligan 2017-12-22 13:55:17 -08:00 committed by GitHub
parent 85cbcbf7b0
commit ded2127934
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ()