Mark gtest variables cached (#3980)
* Mark gtest variables cached Set GTEST location variables as CACHE so they can be modified when gtest is in a different location from the cmake call (/usr/src, /usr/include is not writable on OS X) * Uppercase location and write Google Test like Google does
This commit is contained in:
committed by
Bertrand Songis
parent
5ba14734cb
commit
a50d69c3b2
@@ -1,5 +1,5 @@
|
|||||||
set(GTEST_INCDIR /usr/include/gtest)
|
set(GTEST_INCDIR /usr/include/gtest CACHE string "Location of Google Test includes")
|
||||||
set(GTEST_SRCDIR /usr/src/gtest)
|
set(GTEST_SRCDIR /usr/src/gtest CACHE string "Location of Google Test directory")
|
||||||
|
|
||||||
if(EXISTS "${GTEST_SRCDIR}/src/gtest-all.cc")
|
if(EXISTS "${GTEST_SRCDIR}/src/gtest-all.cc")
|
||||||
if(Qt5Widgets_FOUND)
|
if(Qt5Widgets_FOUND)
|
||||||
|
|||||||
Reference in New Issue
Block a user