Properly handle libcurl flags in CMakeLists.txt on Windows (#1079)
This commit is contained in:
parent
014ca7e8a1
commit
be74b740f5
1 changed files with 4 additions and 1 deletions
|
|
@ -149,7 +149,10 @@ if(WIN32)
|
|||
enable_language(RC)
|
||||
set(CMAKE_RC_COMPILER windres)
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CURL_STATIC_LDFLAGS} ${CURL_STATIC_CFLAGS}")
|
||||
|
||||
add_definitions(-DCURL_STATICLIB)
|
||||
include_directories(${CURL_STATIC_INCLUDE_DIRS})
|
||||
link_directories(${CURL_STATIC_LIBRARY_DIRS})
|
||||
|
||||
add_compile_definitions(SUNSHINE_PLATFORM="windows")
|
||||
add_subdirectory(tools) # This is temporary, only tools for Windows are needed, for now
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue