X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=CMakeLists.txt;h=7fdc6fdbe1d12addc4f7e9b755bdc294811ee960;hp=4a6cfa89b7c76fb3caa464c645d969dc54a295f0;hb=b34a29a68afd358a72f34351b122da4e066dfecd;hpb=ad524dacd08f1703999df472e728a736bf5bc083 diff --git a/CMakeLists.txt b/CMakeLists.txt index 4a6cfa89..7fdc6fdb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -218,6 +218,12 @@ else(WITH_KDE) message(STATUS "Not enabling KDE4 integration") endif(WITH_KDE) +# needed to compile with mingw without kde +if(MINGW AND NOT HAVE_KDE) + add_definitions(-D_WIN32_WINNT=0x0500) + message(STATUS "Added _WIN32_WINNT=0x0500 definition for MinGW") +endif(MINGW AND NOT HAVE_KDE) + # Setup Phonon support - we only need this if we don't have or want KDE4 if(NOT HAVE_KDE) if(WITH_PHONON) @@ -289,10 +295,13 @@ endif(STATIC AND CMAKE_COMPILER_IS_GNUCXX) if(WIN32) link_libraries(imm32 winmm dbghelp Secur32) # missing by default :/ - - if(HAVE_SSL) - link_libraries(${OPENSSL_LIBRARIES} libeay32MD) - endif(HAVE_SSL) + if(MSVC) + link_libraries(Version dwmapi shlwapi) + endif(MSVC) + if(HAVE_SSL AND STATIC) + find_package(OpenSSL REQUIRED) + link_libraries(${OPENSSL_LIBRARIES}) + endif(HAVE_SSL AND STATIC) endif(WIN32) if(INDICATEQT_FOUND)