mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-30 11:29:19 +08:00
mdbx-cmake: avoid '-NOTFOUND' inside MDBX_BUILD_FLAGS.
Change-Id: Ia8974d0ffa092a5ffbfe553af49926c3532c88a3
This commit is contained in:
parent
8231aa5b47
commit
712bad5935
@ -142,11 +142,15 @@ endif()
|
||||
|
||||
# get 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_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)
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
|
Loading…
Reference in New Issue
Block a user