diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index b8c52b3db3..4f5c01e6a6 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -96,7 +96,7 @@ if(USE_EGL) endif() if(WIN32) - set(SRCS ${SRCS} GL/GLInterface/WGL.cpp) + set(SRCS ${SRCS} GL/GLInterface/WGL.cpp CompatPatches.cpp) elseif(APPLE) set(SRCS ${SRCS} GL/GLInterface/AGL.mm) elseif(HAIKU) @@ -125,4 +125,6 @@ if(UNIX) if(HAIKU) target_link_libraries(traversal_server network) endif() +elseif(WIN32) + target_link_libraries(common PRIVATE "-INCLUDE:enableCompatPatches") endif()