From 93d9508fee9b5a492389919bac2db9be1366d311 Mon Sep 17 00:00:00 2001 From: Joe Loser Date: Mon, 11 Mar 2019 20:01:59 -0400 Subject: [PATCH] Remove explicit include for gtest for old CMake Summary: - For older versions of CMake -- specifically 2.8.11 or lower, you need to explicitly add the incldue directory for gtest. - However, since `pushmi` requires CMake 3.7 or later, this does not need to be guarded against. --- CMakeLists.txt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b80a47d..60dc1e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,12 +149,5 @@ add_subdirectory(${CMAKE_CURRENT_BINARY_DIR}/googletest-src ${CMAKE_CURRENT_BINARY_DIR}/googletest-build EXCLUDE_FROM_ALL) -# The gtest/gtest_main targets carry header search path -# dependencies automatically when using CMake 2.8.11 or -# later. Otherwise we have to add them here ourselves. -if (CMAKE_VERSION VERSION_LESS 2.8.11) - include_directories("${gtest_SOURCE_DIR}/include") -endif() - include(CTest) add_subdirectory(test)