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}