0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 06:41:03 +08:00

Initialize some CMake variables as empty before build

This prevents a bug that occurs when a parent has a `sources` variable when doing `add_subdirectory("libzmq")`.
This commit is contained in:
serg06 2020-05-24 18:08:57 -04:00 committed by Luca Boccassi
parent c95f7d0933
commit 2e87390656

View File

@ -31,6 +31,12 @@ include(ZMQSupportMacros)
find_package(PkgConfig)
# Set lists to empty beforehand as to not accidentally take values from parent
set(sources)
set(cxx-sources)
set(html-docs)
set(target_outputs)
option(ENABLE_ASAN "Build with address sanitizer" OFF)
if(ENABLE_ASAN)
message(STATUS "Instrumenting with Address Sanitizer")