Skip to content

Commit e55f33e

Browse files
committed
Fix debug/optimized keyword issue on CMake/Win32
1 parent b028016 commit e55f33e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mk/cmake/SuperTux/ProvideCurl.cmake

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,13 @@ if(NOT EMSCRIPTEN)
2121

2222
add_library(LibCurl INTERFACE IMPORTED)
2323
set_target_properties(LibCurl PROPERTIES
24-
INTERFACE_LINK_LIBRARIES "${CURL_LIBRARY}"
2524
INTERFACE_INCLUDE_DIRECTORIES "${CURL_INCLUDE_DIRS}")
25+
if(WIN32)
26+
target_link_libraries(LibCurl INTERFACE ${CURL_LIBRARY})
27+
else()
28+
set_target_properties(LibCurl PROPERTIES
29+
INTERFACE_LINK_LIBRARIES "${CURL_LIBRARY}")
30+
endif()
2631

2732
set(HAVE_LIBCURL TRUE)
2833
endif()

0 commit comments

Comments
 (0)