Fix the UPPERCASE_BUILD_TYPE variable to make the CMakeLists.txt file compatible with multi-config generators
This commit is contained in:
parent
046622a445
commit
07d836da64
|
@ -82,7 +82,7 @@ elseif(${IS_CLANG})
|
|||
endif()
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -fstrict-vtable-pointers")
|
||||
endif()
|
||||
string(TOUPPER ${CMAKE_BUILD_TYPE} UPPERCASE_BUILD_TYPE)
|
||||
string(TOUPPER "${CMAKE_BUILD_TYPE}" UPPERCASE_BUILD_TYPE)
|
||||
if (UPPERCASE_BUILD_TYPE STREQUAL RELEASE)
|
||||
add_definitions(-DYBCON_FLAGS="${CMAKE_CXX_FLAGS_RELEASE}")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue