Add EXTRA_<LANG>FLAGS to CMAKE_<LANG>_FLAGS if the former are not an empty string
This commit is contained in:
@ -36,7 +36,9 @@ if(NOT CMAKE_C_COMPILER_WORKS)
|
||||
endif()
|
||||
|
||||
if(DEFINED EXTRA_CXXFLAGS)
|
||||
if(NOT EXTRA_CXXFLAGS STREQUAL "")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_CXXFLAGS}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(DEFINED ENV{CXXFLAGS})
|
||||
|
Reference in New Issue
Block a user