mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-02 13:10:37 +08:00
Update compiler_flags.cmake
Removed the CMake changes. Will update the cmake in another PR.
This commit is contained in:
parent
85cbcbf7b0
commit
ded2127934
@ -152,7 +152,8 @@ function (add_cxx_preproc_definition preproc_def)
|
|||||||
string(FIND "${CMAKE_CXX_FLAGS}" "${preproc_def}" PREPROC_DEF_FOUND)
|
string(FIND "${CMAKE_CXX_FLAGS}" "${preproc_def}" PREPROC_DEF_FOUND)
|
||||||
|
|
||||||
if (${PREPROC_DEF_FOUND} EQUAL -1)
|
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 ()
|
endif ()
|
||||||
endfunction ()
|
endfunction ()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user