Fix for 20:04

This commit is contained in:
2025-01-23 14:00:30 -06:00
parent 1336d84006
commit 2c45113d6d

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.16)
project(TessesFramework VERSION 1.0)
@ -93,6 +93,12 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
target_link_libraries(${TessesFramework_TARGET} PUBLIC ws2_32)
endif()
if(NOT ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "NintendoWii" OR "${CMAKE_SYSTEM_NAME}" STREQUAL "NintendoGameCube"))
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
target_link_libraries(${TessesFramework_TARGET} PRIVATE Threads::Threads)
endif()
endfunction()