fix libevent static link
Some checks failed
sgraves/cpp-build-system/pipeline/head Build queued...
sgraves/cpp-build-system_mac/pipeline/head There was a failure building this commit

This commit is contained in:
2026-01-25 13:04:31 -06:00
parent 5c93b23f64
commit 7ef0fb6f60

View File

@@ -10,14 +10,6 @@ if(PROJECT_ENABLE_LIBEVENT)
endif() endif()
include_directories(BEFORE SYSTEM ${LIBEVENT_INCLUDE_DIRS}) include_directories(BEFORE SYSTEM ${LIBEVENT_INCLUDE_DIRS})
if (PROJECT_IS_MINGW_UNIX)
unset(LIBEVENT_LIBRARIES)
set(LIBEVENT_LIBRARIES
/mingw64/lib/libevent.dll.a
/mingw64/lib/libevent_core.dll.a
/mingw64/lib/libevent_extra.dll.a
)
endif()
link_libraries(${LIBEVENT_LIBRARIES}) link_libraries(${LIBEVENT_LIBRARIES})
elseif(NOT PROJECT_IS_MINGW) elseif(NOT PROJECT_IS_MINGW)
if(PROJECT_BUILD_SHARED_LIBS) if(PROJECT_BUILD_SHARED_LIBS)