diff options
| author | 2014-12-30 23:54:02 -0500 | |
|---|---|---|
| committer | 2014-12-30 23:54:02 -0500 | |
| commit | 29da5da9513c0faae0880d2fced18f80ef89923b (patch) | |
| tree | 9a652fd606e57f322ca07e1468ea3ae83addf6a2 /src/citra | |
| parent | Merge pull request #372 from lioncash/warn (diff) | |
| parent | Fix MSVC-related #defines and add CMakeLists comment (diff) | |
| download | yuzu-29da5da9513c0faae0880d2fced18f80ef89923b.tar.gz yuzu-29da5da9513c0faae0880d2fced18f80ef89923b.tar.xz yuzu-29da5da9513c0faae0880d2fced18f80ef89923b.zip | |
Merge pull request #369 from darkf/mingw_
Fix MinGW build (2)
Diffstat (limited to 'src/citra')
| -rw-r--r-- | src/citra/CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/citra/CMakeLists.txt b/src/citra/CMakeLists.txt index b06259f5e..dc5e04bfc 100644 --- a/src/citra/CMakeLists.txt +++ b/src/citra/CMakeLists.txt | |||
| @@ -14,7 +14,7 @@ create_directory_groups(${SRCS} ${HEADERS}) | |||
| 14 | 14 | ||
| 15 | add_executable(citra ${SRCS} ${HEADERS}) | 15 | add_executable(citra ${SRCS} ${HEADERS}) |
| 16 | target_link_libraries(citra core common video_core) | 16 | target_link_libraries(citra core common video_core) |
| 17 | target_link_libraries(citra ${OPENGL_gl_LIBRARY} ${GLFW_LIBRARIES} inih) | 17 | target_link_libraries(citra ${GLFW_LIBRARIES} ${OPENGL_gl_LIBRARY} inih) |
| 18 | 18 | ||
| 19 | if (UNIX) | 19 | if (UNIX) |
| 20 | target_link_libraries(citra -pthread) | 20 | target_link_libraries(citra -pthread) |
| @@ -24,6 +24,9 @@ if (APPLE) | |||
| 24 | target_link_libraries(citra iconv ${COREFOUNDATION_LIBRARY}) | 24 | target_link_libraries(citra iconv ${COREFOUNDATION_LIBRARY}) |
| 25 | elseif (WIN32) | 25 | elseif (WIN32) |
| 26 | target_link_libraries(citra winmm) | 26 | target_link_libraries(citra winmm) |
| 27 | if (MINGW) # GCC does not support codecvt, so use iconv instead | ||
| 28 | target_link_libraries(citra iconv) | ||
| 29 | endif() | ||
| 27 | else() # Unix | 30 | else() # Unix |
| 28 | target_link_libraries(citra rt) | 31 | target_link_libraries(citra rt) |
| 29 | endif() | 32 | endif() |