2024-03-15 16:19:01 +00:00
|
|
|
if (NOT MINGW)
|
|
|
|
return()
|
2024-03-13 18:13:55 +00:00
|
|
|
endif()
|
|
|
|
|
2024-03-15 16:19:01 +00:00
|
|
|
# this has to run after the toolchain is initialized.
|
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/dependencies/mingw-include")
|
|
|
|
include_directories("${CMAKE_SOURCE_DIR}/dependencies/mingw-xaudio/include")
|
2024-03-13 18:13:55 +00:00
|
|
|
|
2024-03-30 20:14:32 +00:00
|
|
|
# Add Winsock as the last library linked because of broken link precedence.
|
|
|
|
set(CMAKE_CXX_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -lws2_32")
|