diff options
| author | 2014-12-25 11:49:00 +0100 | |
|---|---|---|
| committer | 2015-01-09 15:50:46 +0100 | |
| commit | d7ad14ae2088789a853d36fb3a465a920c0116ee (patch) | |
| tree | 0fcbc50097f50ac5e460467a3ea89cdf5fc2e91c /src | |
| parent | Link Cocoa, IOKit and CoreVideo on OSX (diff) | |
| download | yuzu-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.txt | 4 | ||||
| -rw-r--r-- | src/citra_qt/CMakeLists.txt | 4 |
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) | |||
| 18 | target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih) | 18 | target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih) |
| 19 | target_link_libraries(citra ${PLATFORM_LIBRARIES}) | 19 | target_link_libraries(citra ${PLATFORM_LIBRARIES}) |
| 20 | 20 | ||
| 21 | if (UNIX) | ||
| 22 | target_link_libraries(citra -pthread) | ||
| 23 | endif() | ||
| 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) | |||
| 62 | target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS}) | 62 | target_link_libraries(citra-qt ${OPENGL_gl_LIBRARY} ${CITRA_QT_LIBS}) |
| 63 | target_link_libraries(citra-qt ${PLATFORM_LIBRARIES}) | 63 | target_link_libraries(citra-qt ${PLATFORM_LIBRARIES}) |
| 64 | 64 | ||
| 65 | if (UNIX) | ||
| 66 | target_link_libraries(citra-qt -pthread) | ||
| 67 | endif() | ||
| 68 | |||
| 69 | #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) | 65 | #install(TARGETS citra-qt RUNTIME DESTINATION ${bindir}) |