diff options
author | Sebastian Sauer <mail@dipe.org> | 2006-10-20 22:55:00 +0000 |
---|---|---|
committer | Sebastian Sauer <mail@dipe.org> | 2006-10-20 22:55:00 +0000 |
commit | aa5b265e4c7f4fe93fd2581e71b9519e3ccf346b (patch) | |
tree | c10589f17e9c66d61d3a27ee2024dd552a8933f9 | |
parent | fd0a49550e4d3038fb9cd972019eecc9db196a25 (diff) | |
download | extra-cmake-modules-aa5b265e4c7f4fe93fd2581e71b9519e3ccf346b.tar.gz extra-cmake-modules-aa5b265e4c7f4fe93fd2581e71b9519e3ccf346b.tar.bz2 |
cmake runs through now. Compiling on win/mingw could start :)
svn path=/trunk/KDE/kdelibs/; revision=597606
-rw-r--r-- | modules/FindKDEWIN32.cmake | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/FindKDEWIN32.cmake b/modules/FindKDEWIN32.cmake index 385a34f4..d5a5eee6 100644 --- a/modules/FindKDEWIN32.cmake +++ b/modules/FindKDEWIN32.cmake @@ -60,8 +60,11 @@ endif(MSVC) # eventually it will be moved out from kdelibs/ if (KDEWIN32_LIBRARY AND KDEWIN32_INCLUDE_DIR) set(KDEWIN32_FOUND TRUE) - # add the winsock2 library, using find_library or something like this would probably be better - set(KDEWIN32_LIBRARIES ${KDEWIN32_LIBRARY} user32 shell32 ws2_32) + # add the winsock2 library + find_library(WIN32_USER32_LIBRARY NAMES user32 PATHS $ENV{WINDIR}/system32) + find_library(WIN32_SHELL32_LIBRARY NAMES shell32 PATHS $ENV{WINDIR}/system32) + find_library(WIN32_WS2_LIBRARY NAMES ws2_32 PATHS $ENV{WINDIR}/system32) + set(KDEWIN32_LIBRARIES "${KDEWIN32_LIBRARY} ${WIN32_USER32_LIBRARY} ${WIN32_SHELL32_LIBRARY} ${WIN32_WS2_LIBRARY}") if (MINGW) #mingw compiler |