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 definitions
get_target_property(defs_list mdbx COMPILE_DEFINITIONS) get_target_property(defs_list mdbx COMPILE_DEFINITIONS)
list(APPEND MDBX_BUILD_FLAGS ${defs_list}) if(defs_list)
list(APPEND MDBX_BUILD_FLAGS ${defs_list})
endif()
# get target compile options # get target compile options
get_target_property(options_list mdbx COMPILE_OPTIONS) get_target_property(options_list mdbx COMPILE_OPTIONS)
list(APPEND MDBX_BUILD_FLAGS ${options_list}) if(options_list)
list(APPEND MDBX_BUILD_FLAGS ${options_list})
endif()
list(REMOVE_DUPLICATES MDBX_BUILD_FLAGS) list(REMOVE_DUPLICATES MDBX_BUILD_FLAGS)
if(CMAKE_CONFIGURATION_TYPES) if(CMAKE_CONFIGURATION_TYPES)