Only define YBCON_FLAGS in optimized builds
This commit is contained in:
parent
62204d480e
commit
36b0e39a92
|
@ -79,7 +79,10 @@ elseif(${IS_CLANG})
|
|||
endif()
|
||||
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -flto=full -fwhole-program-vtables -fstrict-vtable-pointers")
|
||||
endif()
|
||||
add_definitions(-DYBCON_FLAGS="${CMAKE_CXX_FLAGS_RELEASE}" -DYBCON_COMPILER="${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
add_definitions(-DYBCON_FLAGS="${CMAKE_CXX_FLAGS_RELEASE}")
|
||||
endif()
|
||||
add_definitions(-DYBCON_COMPILER="${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
|
||||
if (MINGW OR MSVC)
|
||||
if (UNIX)
|
||||
|
|
Loading…
Reference in New Issue