mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-21 23:47:52 +08:00
Fix cmake ASAN build
This commit is contained in:
committed by
Roger Light
parent
9193d14871
commit
f2d80aa6b8
@@ -67,6 +67,7 @@ jobs:
|
||||
cmake \
|
||||
-G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=Debug \
|
||||
-DWITH_SHARED_LIBCOMMON=ON \
|
||||
-S . \
|
||||
-B build
|
||||
env:
|
||||
|
||||
@@ -29,6 +29,13 @@ option_env(ALLOC_MISMATCH_INVALID_READ "Memory function mismatch detection." OFF
|
||||
option_env(ALLOC_MISMATCH_ABORT "Memory function mismatch abort." OFF)
|
||||
|
||||
if(WIN32)
|
||||
set(WITH_SHARED_LIBCOMMON_DEF ON)
|
||||
else()
|
||||
set(WITH_SHARED_LIBCOMMON_DEF OFF)
|
||||
endif()
|
||||
option_env(WITH_SHARED_LIBCOMMON "Build libmosquitto_common as a shared library?" ${WITH_SHARED_LIBCOMMON_DEF})
|
||||
|
||||
if(WITH_SHARED_LIBCOMMON)
|
||||
add_library(libmosquitto_common SHARED
|
||||
${C_SRC}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user