Skip to content

Commit

Permalink
The Linux build was not linking in pthreads, causing a crash with a u…
Browse files Browse the repository at this point in the history
…ndefined symbol. This is probably needed in a larger scope but I don't have the other platforms to test at this time.
  • Loading branch information
bradc6 committed Mar 22, 2020
1 parent b8761fa commit f84f527
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
endif()
#Linux
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
set(THREADS_PREFER_PTHREAD_FLAG ON)
find_package(Threads REQUIRED)
list(APPEND GlideN64_Private_Link_Libraries Threads::Threads)
list(APPEND GLideN64_SOURCES ${GLideN64_SOURCES_UNIX})
list(APPEND GlideN64_Private_Compile_Definitions OS_LINUX)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
Expand Down

0 comments on commit f84f527

Please sign in to comment.