summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKnut Omang <knut.omang@oracle.com>2018-02-10 10:23:48 (GMT)
committerKnut Omang <knut.omang@oracle.com>2019-02-11 19:19:58 (GMT)
commit60cf03313da2bf615cbc5c535105afb7aa310431 (patch)
treeb875ccd14eaa2e13b7cd8c68b93f443b1a22befe
parent9a502a5b14b4a6160103c1f2c64331772878d86a (diff)
downloadgoogletest-60cf03313da2bf615cbc5c535105afb7aa310431.zip
googletest-60cf03313da2bf615cbc5c535105afb7aa310431.tar.gz
googletest-60cf03313da2bf615cbc5c535105afb7aa310431.tar.bz2
Set gtest version correctly for older cmake versionsrefs/pull/2113/head
Signed-off-by: Knut Omang <knut.omang@oracle.com>
-rw-r--r--googletest/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
index e33718b..6e42c5c 100644
--- a/googletest/CMakeLists.txt
+++ b/googletest/CMakeLists.txt
@@ -40,8 +40,12 @@ endif()
# as ${gtest_SOURCE_DIR} and to the root binary directory as
# ${gtest_BINARY_DIR}.
# Language "C" is required for find_package(Threads).
+
+# Project version:
+
if (CMAKE_VERSION VERSION_LESS 3.0)
project(gtest CXX C)
+ set(PROJECT_VERSION ${GOOGLETEST_VERSION})
else()
cmake_policy(SET CMP0048 NEW)
project(gtest VERSION ${GOOGLETEST_VERSION} LANGUAGES CXX C)