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:
parent
c95f7d0933
commit
2e87390656
@ -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")
|
||||
|
Loading…
x
Reference in New Issue
Block a user