# HG changeset patch # User Sebastien Jodogne # Date 1515142065 -3600 # Node ID 59c9f8e7dc5c4bf6b93c658040948bbe720133f6 # Parent d4fefd84303514ec13192e34c11d0ec92c1729e9 sync diff -r d4fefd843035 -r 59c9f8e7dc5c Orthanc/Resources/CMake/GoogleTestConfiguration.cmake --- a/Orthanc/Resources/CMake/GoogleTestConfiguration.cmake Thu Jan 04 20:03:15 2018 +0100 +++ b/Orthanc/Resources/CMake/GoogleTestConfiguration.cmake Fri Jan 05 09:47:45 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()