mdbx-cmake: fix MDBX_BUILD_FLAGS list-case.

Change-Id: I4c2ce187e31ba3f7b225049b1c96a81fbfd9dead
This commit is contained in:
Leonid Yuriev 2019-09-19 03:31:04 +03:00
parent 7c39c16829
commit ab456bf376
2 changed files with 2 additions and 0 deletions

View File

@ -120,6 +120,7 @@ else()
list(APPEND MDBX_BUILD_FLAGS ${CMAKE_C_DEFINES_${CMAKE_BUILD_TYPE_UPPERCASE}})
endif()
list(REMOVE_DUPLICATES MDBX_BUILD_FLAGS)
string(REPLACE ";" "" MDBX_BUILD_FLAGS "${MDBX_BUILD_FLAGS}")
add_definitions(-DMDBX_BUILD_FLAGS="${MDBX_BUILD_FLAGS}")
# add targets both for shared and static libraries

View File

@ -153,6 +153,7 @@ if(options_list)
endif()
list(REMOVE_DUPLICATES MDBX_BUILD_FLAGS)
string(REPLACE ";" "" MDBX_BUILD_FLAGS "${MDBX_BUILD_FLAGS}")
if(CMAKE_CONFIGURATION_TYPES)
# add dynamic part via per-configuration define
message(STATUS "MDBX Compile Flags: ${MDBX_BUILD_FLAGS} <AND CONFIGURATION DEPENDENT>")