diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2014-08-01 23:23:52 -0700 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2014-08-02 09:34:39 -0700 |
| commit | 8b26d7bf1ef478ff2f06d3cf0b0712418d1a8627 (patch) | |
| tree | 9611fbdb109eb470136d827aae43b5d9bfae7d0d /Source/Core/Common | |
| parent | 226a9c239220c5ba99508a6b96ce28903a35be80 (diff) | |
UnitTests: make it possible to build tests for code that has global dependencies
Diffstat (limited to 'Source/Core/Common')
| -rw-r--r-- | Source/Core/Common/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/Common/CMakeLists.txt b/Source/Core/Common/CMakeLists.txt index f375661e0b..d5974ecca6 100644 --- a/Source/Core/Common/CMakeLists.txt +++ b/Source/Core/Common/CMakeLists.txt @@ -48,6 +48,11 @@ if(WIN32) set(SRCS ${SRCS} ExtendedTrace.cpp) endif(WIN32) +set(LIBS "${CMAKE_THREAD_LIBS_INIT}") +if((NOT ${CMAKE_SYSTEM_NAME} MATCHES "Darwin") AND (NOT ANDROID)) + set(LIBS ${LIBS} rt) +endif() + enable_precompiled_headers(stdafx.h stdafx.cpp SRCS) -add_dolphin_library(common "${SRCS}" "${CMAKE_THREAD_LIBS_INIT}") +add_dolphin_library(common "${SRCS}" "${LIBS}") |
