summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Johannes Ekberg2014-12-25 11:49:00 +0100
committerGravatar Johannes Ekberg2015-01-09 15:50:46 +0100
commitd7ad14ae2088789a853d36fb3a465a920c0116ee (patch)
tree0fcbc50097f50ac5e460467a3ea89cdf5fc2e91c /src
parentLink Cocoa, IOKit and CoreVideo on OSX (diff)
downloadyuzu-d7ad14ae2088789a853d36fb3a465a920c0116ee.tar.gz
yuzu-d7ad14ae2088789a853d36fb3a465a920c0116ee.tar.xz
yuzu-d7ad14ae2088789a853d36fb3a465a920c0116ee.zip
Use -pthread where and only where needed
Passing -pthread to GCC as a flag makes it both link to libpthread, and make C standard library routines reentrant. This makes the additional explicit links unnecessary. Additionally, on OSX, this is the default behavior, and clang will print a message about it being unused if it's present there.
Diffstat (limited to 'src')
-rw-r--r--src/citra/CMakeLists.txt4
-rw-r--r--src/citra_qt/CMakeLists.txt4
2 files changed, 0 insertions, 8 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt
index 7f3ab3e07..713f49193 100644
--- a/src/citra/CMakeLists.txt
+++ b/src/citra/CMakeLists.txt
@@ -18,8 +18,4 @@ target_link_libraries(citra core common video_core)
18target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih) 18target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih)
19target_link_libraries(citra ${PLATFORM_LIBRARIES}) 19target_link_libraries(citra ${PLATFORM_LIBRARIES})
20 20
21if (UNIX)
22 target_link_libraries(citra -pthread)
23endif()
24
25#install(TARGETS citra RUNTIME DESTINATION ${bindir}) 21#install(TARGETS citra RUNTIME DESTINATION ${bindir})
diff --git a/src/citra_qt/CMakeLists.txt b/src/citra_qt/CMakeLists.txt
index 420bede1e..bbc521f8a 100644
--- a/src/citra_qt/CMakeLists.txt
+++ b/src/citra_qt/CMakeLists.txt
@@ -62,8 +62,4 @@ target_link_libraries(citra-qt core common video_core qhexedit)
62target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS}) 62target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS})
63target_link_libraries(citra-qt ${PLATFORM_LIBRARIES}) 63target_link_libraries(citra-qt ${PLATFORM_LIBRARIES})
64 64
65if (UNIX)
66 target_link_libraries(citra-qt -pthread)
67endif()
68
69#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) 65#install(TARGETS citra-qt RUNTIME DESTINATION ${bindir})