diff options
author | Chris Robinson <[email protected]> | 2011-05-17 08:36:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2011-05-17 08:36:26 -0700 |
commit | 810734718b71c23bca4026913ed4d48f7160ad2a (patch) | |
tree | 19ffe066867e9a004100156741c857b3dc95bab0 | |
parent | ca48c2e51b2da251b5c11ae9acc1448c94accaca (diff) |
Always look for libwinmm
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2b9ec7fa..7cf3db78 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -318,13 +318,11 @@ IF(NOT HAVE_STDINT_H) ENDIF() ENDIF() -IF(WIN32) - # Windows needs winmm for timeGetTime, even if the backend is disabled - CHECK_SHARED_LIBRARY_EXISTS(winmm timeGetTime 0 "" HAVE_LIBWINMM) - IF(HAVE_LIBWINMM) - SET(EXTRA_LIBS winmm ${EXTRA_LIBS}) - SET(PKG_CONFIG_LIBS ${PKG_CONFIG_LIBS} -lwinmm) - ENDIF() +# Windows needs winmm for timeGetTime, even if the backend is disabled +CHECK_SHARED_LIBRARY_EXISTS(winmm timeGetTime 0 "" HAVE_LIBWINMM) +IF(HAVE_LIBWINMM) + SET(EXTRA_LIBS winmm ${EXTRA_LIBS}) + SET(PKG_CONFIG_LIBS ${PKG_CONFIG_LIBS} -lwinmm) ENDIF() |