forked from rosebudai/OpenRCT2-Web
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.
This commit is contained in:
1 parent
a2f8720143
commit
cfa20d2117
1 file changed
+2
-2
@@ -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})
|
||||
|
||||
|
||||
Reference in new issue
Block a user