You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the issue
I'm trying to link ulfius to my cmake project on Windows. I would like to have ulfius sourcecode inside my libs/ folder, then let cmake compile using add_subdirectory(libs/ulfius) and directly linking target ulfius_static. It seems to works just fine except for microhttpd.
To Reproduce
I cloned ulfius inside libs/ folder, then I downloaded microhttpd-w32-bin.zip extracted the libmicrohttpd-0.9.77-w32-bin\x86_64\MinGW\static\mingw64 contents inside libs/. Then I copied an Ulfius example and compiled my porject using Cmake (crf. Additional Context)
Expected behavior
It should successfully compile
Screenshots
System (please complete the following information):
Windows 11
Ulfius 2.7.13
git clone
Additional context
Here is my CMakeLists.txt
cmake_minimum_required(VERSION 3.22.1)
project(myapp C)
if (WIN32)
set(MHD_LIBRARY ${PROJECT_SOURCE_DIR}/libs/microhttpd-w32/lib/libmicrohttpd.a)
set(MHD_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/libs/microhttpd-w32/include)
endif ()
add_subdirectory(libs/ulfius-2.7.13)
include_directories(include)
set(SOURCES)
add_executable(${PROJECT_NAME} main.c ${SOURCES})
target_link_libraries(${PROJECT_NAME}
ulfius_static)
if (NOTWIN32)
target_link_libraries(${PROJECT_NAME} m)
endif ()
The text was updated successfully, but these errors were encountered:
Unfortunately, I don't know much on windows build or mingw64, I believe it's possible since I think other were able to build it, but I wouldn't know how.
Describe the issue
I'm trying to link ulfius to my cmake project on Windows. I would like to have ulfius sourcecode inside my
libs/
folder, then let cmake compile usingadd_subdirectory(libs/ulfius)
and directly linking targetulfius_static
. It seems to works just fine except for microhttpd.To Reproduce
I cloned ulfius inside
libs/
folder, then I downloadedmicrohttpd-w32-bin.zip
extracted thelibmicrohttpd-0.9.77-w32-bin\x86_64\MinGW\static\mingw64
contents insidelibs/
. Then I copied an Ulfius example and compiled my porject using Cmake (crf. Additional Context)Expected behavior
It should successfully compile
Screenshots

System (please complete the following information):
Additional context
Here is my CMakeLists.txt
The text was updated successfully, but these errors were encountered: