mdbx-cmake: avoid '-NOTFOUND' inside MDBX_BUILD_FLAGS.

Change-Id: Ia8974d0ffa092a5ffbfe553af49926c3532c88a3
This commit is contained in:
Leonid Yuriev 2019-09-11 22:03:11 +03:00
parent 8231aa5b47
commit 712bad5935

View File

@ -142,11 +142,15 @@ endif()
# get definitions
get_target_property(defs_list mdbx COMPILE_DEFINITIONS)
if(defs_list)
list(APPEND MDBX_BUILD_FLAGS ${defs_list})
endif()
# get target compile options
get_target_property(options_list mdbx COMPILE_OPTIONS)
if(options_list)
list(APPEND MDBX_BUILD_FLAGS ${options_list})
endif()
list(REMOVE_DUPLICATES MDBX_BUILD_FLAGS)
if(CMAKE_CONFIGURATION_TYPES)