Find GTest: Reformat CMake code
+# ~~~
# This script reads the GTEST_ROOT variable, if available,
# looking into it as base directory of the GoogleTest sources.
#
# Must be included only once
#
# GTEST_ROOT will only be honored in the very first invocation
+# ~~~
if (NOT GOOGLETEST_ROOT)
if (NOT (GTEST_ROOT STREQUAL ""))
if (EXISTS ${GTEST_ROOT}/CMakeLists.txt)
- set(GOOGLETEST_ROOT
- "${GTEST_ROOT}"
- CACHE INTERNAL
- "Folder which gtest will use"
- FORCE)
+ set (GOOGLETEST_ROOT "${GTEST_ROOT}" CACHE INTERNAL "Folder which gtest will use" FORCE)
message (STATUS "used external gtest below ${GTEST_ROOT}")
endif ()
else ()
- set(GOOGLETEST_ROOT
- ${CMAKE_SOURCE_DIR}/tests/gtest-1.7.0
- CACHE INTERNAL
- "Folder which gtest will use"
- FORCE)
+ set (GOOGLETEST_ROOT ${CMAKE_SOURCE_DIR}/tests/gtest-1.7.0 CACHE INTERNAL "Folder which gtest will use" FORCE)
endif ()
endif ()
