Closed biergaizi closed 1 year ago
Currently, on ARM and PPC, CMakeLists.txt uses:
set(CMAKE_CXX_FLAGS "-DNO_WARN_X86_INTRINSICS -DSSE_CORRECT_DENORMALS")
but this overwrites the default value of CMAKE_CXX_FLAGS from CMake, including user-specified CXXFLAGS via environmental variable, making it impossible to change CXXFLAGS.
This patch appends instead of overwrite CMAKE_CXX_FLAGS via:
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNO_WARN_X86_INTRINSICS -DSSE_CORRECT_DENORMALS")
Currently, on ARM and PPC, CMakeLists.txt uses:
but this overwrites the default value of CMAKE_CXX_FLAGS from CMake, including user-specified CXXFLAGS via environmental variable, making it impossible to change CXXFLAGS.
This patch appends instead of overwrite CMAKE_CXX_FLAGS via: