Update CMakeLists.txt
This commit is contained in:
@@ -204,16 +204,8 @@ if(WIN32)
|
|||||||
enable_language(RC)
|
enable_language(RC)
|
||||||
target_sources(86Box PUBLIC 86Box-qt.rc)
|
target_sources(86Box PUBLIC 86Box-qt.rc)
|
||||||
target_sources(plat PRIVATE win_dynld.c)
|
target_sources(plat PRIVATE win_dynld.c)
|
||||||
if(DINPUT)
|
target_link_libraries(86Box dwmapi)
|
||||||
target_sources(plat PRIVATE win_joystick.cpp)
|
|
||||||
target_link_libraries(86Box dinput8)
|
|
||||||
else()
|
|
||||||
target_sources(plat PRIVATE win_joystick_rawinput.c)
|
|
||||||
endif()
|
|
||||||
target_sources(ui PRIVATE qt_d3d9renderer.hpp qt_d3d9renderer.cpp)
|
|
||||||
target_link_libraries(86Box hid d3d9 dwmapi)
|
|
||||||
|
|
||||||
# REMOVE THE DINPUT STUFF, IT'S FROM CACO'S DARK MODE BRANCH!!!!
|
|
||||||
# CMake 3.22 messed this up for clang/clang++
|
# CMake 3.22 messed this up for clang/clang++
|
||||||
# See https://gitlab.kitware.com/cmake/cmake/-/issues/22611
|
# See https://gitlab.kitware.com/cmake/cmake/-/issues/22611
|
||||||
if(MSVC OR (NOT MINGW AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.22))
|
if(MSVC OR (NOT MINGW AND CMAKE_VERSION VERSION_GREATER_EQUAL 3.22))
|
||||||
|
|||||||
Reference in New Issue
Block a user