Merge pull request #12760 from AdmiralCurtiss/win-cmake-fix
Fix building with CMake on Windows
This commit is contained in:
commit
485bdba98e
|
@ -55,6 +55,7 @@ add_library(rcheevos
|
||||||
rcheevos/src/rc_version.c
|
rcheevos/src/rc_version.c
|
||||||
rcheevos/src/rc_version.h
|
rcheevos/src/rc_version.h
|
||||||
)
|
)
|
||||||
|
dolphin_disable_warnings(rcheevos)
|
||||||
|
|
||||||
target_include_directories(rcheevos PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/rcheevos/include")
|
target_include_directories(rcheevos PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/rcheevos/include")
|
||||||
target_include_directories(rcheevos INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
target_include_directories(rcheevos INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
|
|
@ -41,6 +41,11 @@ if(APPLE)
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
# needed for adjusting window decorations with DwmSetWindowAttribute
|
||||||
|
target_link_libraries(dolphin-nogui PRIVATE dwmapi.lib)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
# Add precompiled header
|
# Add precompiled header
|
||||||
target_link_libraries(dolphin-nogui PRIVATE use_pch)
|
target_link_libraries(dolphin-nogui PRIVATE use_pch)
|
||||||
|
|
Loading…
Reference in New Issue