mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
make previous change portable
Use cmake's _PREFIX and _SUFFIX to determine the library location.
This commit is contained in:
parent
32d7d04858
commit
dd3485492d
1 changed files with 2 additions and 2 deletions
|
@ -55,10 +55,10 @@ else ()
|
||||||
add_library(gtest UNKNOWN IMPORTED)
|
add_library(gtest UNKNOWN IMPORTED)
|
||||||
add_library(gtest_main UNKNOWN IMPORTED)
|
add_library(gtest_main UNKNOWN IMPORTED)
|
||||||
set_target_properties(gtest PROPERTIES
|
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
|
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 googletest)
|
||||||
add_dependencies(gtest_main googletest)
|
add_dependencies(gtest_main googletest)
|
||||||
|
|
Loading…
Reference in a new issue