# HG changeset patch # User Sebastien Jodogne # Date 1515141356 -3600 # Node ID d61e7335767437a4dc102aef1a9ee150f5745d95 # Parent 47029de27a748a505bf342a9086c75c63ab68540 fix dynamic linking with google-test diff -r 47029de27a74 -r d61e73357674 Resources/CMake/GoogleTestConfiguration.cmake --- a/Resources/CMake/GoogleTestConfiguration.cmake Thu Jan 04 20:02:35 2018 +0100 +++ b/Resources/CMake/GoogleTestConfiguration.cmake Fri Jan 05 09:35:56 2018 +0100 @@ -56,12 +56,13 @@ else() include(FindGTest) - if (NOT GOOGLE_TEST_FOUND) + if (NOT GTEST_FOUND) message(FATAL_ERROR "Unable to find GoogleTest") endif() - include_directories(${GOOGLE_TEST_INCLUDE_DIRS}) + include_directories(${GTEST_INCLUDE_DIRS}) - # The variable GOOGLE_TEST_LIBRARIES contains the shared library of - # Google Test + # The variable GTEST_LIBRARIES contains the shared library of + # Google Test, create an alias for more uniformity + set(GOOGLE_TEST_LIBRARIES ${GTEST_LIBRARIES}) endif()