From 691676a2db123112a0f153c506cc41b15f11ada3 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Thu, 5 Dec 2013 20:28:38 +0100 Subject: [PATCH] fix test for HAVE_THUMBBUTTON --- src/libtomahawk/CMakeLists.txt | 10 ++++++++++ src/tomahawk/CMakeLists.win32.cmake | 11 ----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/libtomahawk/CMakeLists.txt b/src/libtomahawk/CMakeLists.txt index 9002682cf..04c3d84aa 100644 --- a/src/libtomahawk/CMakeLists.txt +++ b/src/libtomahawk/CMakeLists.txt @@ -434,6 +434,16 @@ IF(LIBATTICA_FOUND) ENDIF(LIBATTICA_FOUND) IF( WIN32 ) + # Check for the availability of the Thumbbutton + + check_cxx_source_compiles( " + #include + int main() { + THUMBBUTTON foo; + return 0; + } + " + HAVE_THUMBBUTTON ) SET( OS_SPECIFIC_LINK_LIBRARIES ${OS_SPECIFIC_LINK_LIBRARIES} # System diff --git a/src/tomahawk/CMakeLists.win32.cmake b/src/tomahawk/CMakeLists.win32.cmake index ce3a71ad7..3567b5e90 100644 --- a/src/tomahawk/CMakeLists.win32.cmake +++ b/src/tomahawk/CMakeLists.win32.cmake @@ -5,17 +5,6 @@ ADD_DEFINITIONS( /DWIN32_LEAN_AND_MEAN ) ADD_DEFINITIONS( -static-libgcc ) ADD_DEFINITIONS( -DUNICODE ) -# Check for the availability of the Thumbbutton - -check_cxx_source_compiles( " - #include - int main() { - THUMBBUTTON foo; - return 0; - } - " - HAVE_THUMBBUTTON ) - SET( OS_SPECIFIC_LINK_LIBRARIES ${OS_SPECIFIC_LINK_LIBRARIES}