From cfa20d211758c45cc7ef60ed55a5db9f08f61fd0 Mon Sep 17 00:00:00 2001 From: "Hendrik v. Raven" Date: Wed, 26 Jul 2017 10:39:17 +0200 Subject: [PATCH] rename GTEST_INCLUDE_DIR to GTEST_INCLUDE_DIRS GTEST_INCLUDE_DIRS is the name used by the CMake GTest package. This is a preparation for the optional usage of a system installed gtest. --- test/tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/tests/CMakeLists.txt b/test/tests/CMakeLists.txt index 11d63eb051..1a4ad6aa03 100644 --- a/test/tests/CMakeLists.txt +++ b/test/tests/CMakeLists.txt @@ -36,7 +36,7 @@ ExternalProject_Add( # Specify include dir -set(GTEST_INCLUDE_DIR ${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest/include) +set(GTEST_INCLUDE_DIRS ${GOOGLETEST_DISTRIB_SOURCE_DIR}/googletest/include) # Library ExternalProject_Get_Property(googletest BINARY_DIR) @@ -52,7 +52,7 @@ set_property(TARGET ${GTEST_MAIN_LIBRARY} PROPERTY IMPORTED_LOCATION ${GTEST_MAI add_dependencies(${GTEST_LIBRARY} googletest) add_dependencies(${GTEST_MAIN_LIBRARY} ${GTEST_LIBRARY}) -include_directories(SYSTEM ${GTEST_INCLUDE_DIR}) +include_directories(SYSTEM ${GTEST_INCLUDE_DIRS}) include_directories("${ROOT_DIR}/src") include_directories(${SDL2_INCLUDE_DIRS})