diff options
author | Timothy D. Prime <tdprime@teleosmedia.com> | 2017-02-08 13:34:35 -0800 |
---|---|---|
committer | Timothy D. Prime <tdprime@teleosmedia.com> | 2017-02-08 13:34:35 -0800 |
commit | dd3485492d1b7af27b19bcc9d86d4f0941b18ac6 (patch) | |
tree | 09b8011ebb80e6d48b758fa2e59bbbf8f522e399 /tests/CMakeLists.txt | |
parent | fixes #1688 protect make debug-test from gtest (diff) | |
download | monero-dd3485492d1b7af27b19bcc9d86d4f0941b18ac6.tar.xz |
make previous change portable
Use cmake's _PREFIX and _SUFFIX to determine the library location.
Diffstat (limited to '')
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a2e53dda1..b3c40799e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -55,10 +55,10 @@ else () add_library(gtest UNKNOWN IMPORTED) add_library(gtest_main UNKNOWN IMPORTED) set_target_properties(gtest PROPERTIES - IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/gtest/libgtest.a + IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/gtest/${CMAKE_STATIC_LIBRARY_PREFIX}gtest${CMAKE_STATIC_LIBRARY_SUFFIX}" ) set_target_properties(gtest_main PROPERTIES - IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/gtest/libgtest_main.a + IMPORTED_LOCATION "${CMAKE_CURRENT_BINARY_DIR}/gtest/${CMAKE_STATIC_LIBRARY_PREFIX}gtest_main${CMAKE_STATIC_LIBRARY_SUFFIX}" ) add_dependencies(gtest googletest) add_dependencies(gtest_main googletest) |