diff --git a/Config.cmake.in b/Config.cmake.in index 1836374..73cf1d6 100644 --- a/Config.cmake.in +++ b/Config.cmake.in @@ -3,3 +3,9 @@ include("${CMAKE_CURRENT_LIST_DIR}/TessesFrameworkTargets.cmake") check_required_components(TessesFramework) + +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) + +endif() \ No newline at end of file