1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-03 13:01:33 +02:00

Fix build

This commit is contained in:
Ivan Savenko 2024-02-11 19:28:18 +02:00
parent cded8b1999
commit 19ccef7131
2 changed files with 2 additions and 4 deletions

View File

@ -375,7 +375,6 @@ else()
add_executable(vcmiclient ${client_SRCS} ${client_HEADERS})
endif()
add_dependencies(vcmiclient vcmiserver)
if(NOT ENABLE_STATIC_LIBS)
add_dependencies(vcmiclient
BattleAI
@ -454,7 +453,6 @@ elseif(APPLE_IOS)
endif()
target_link_libraries(vcmiclient PRIVATE vcmiservercommon)
if(ENABLE_SINGLE_APP_BUILD AND ENABLE_LAUNCHER)
target_link_libraries(vcmiclient PRIVATE vcmilauncher)
endif()

View File

@ -105,12 +105,12 @@ void setThreadName(const std::string &name)
//not supported
#endif
#elif defined(VCMI_UNIX)
prctl(PR_SET_NAME, name.c_str(), 0, 0, 0);
#elif defined(VCMI_APPLE)
pthread_setname_np(name.c_str());
#elif defined(VCMI_HAIKU)
rename_thread(find_thread(NULL), name.c_str());
#elif defined(VCMI_UNIX)
prctl(PR_SET_NAME, name.c_str(), 0, 0, 0);
#endif
}