Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
60cf0331
Commit
60cf0331
authored
Feb 10, 2018
by
Knut Omang
Browse files
Set gtest version correctly for older cmake versions
Signed-off-by:
Knut Omang
<
knut.omang@oracle.com
>
parent
9a502a5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
googletest/CMakeLists.txt
googletest/CMakeLists.txt
+4
-0
No files found.
googletest/CMakeLists.txt
View file @
60cf0331
...
@@ -40,8 +40,12 @@ endif()
...
@@ -40,8 +40,12 @@ endif()
# as ${gtest_SOURCE_DIR} and to the root binary directory as
# as ${gtest_SOURCE_DIR} and to the root binary directory as
# ${gtest_BINARY_DIR}.
# ${gtest_BINARY_DIR}.
# Language "C" is required for find_package(Threads).
# Language "C" is required for find_package(Threads).
# Project version:
if
(
CMAKE_VERSION VERSION_LESS 3.0
)
if
(
CMAKE_VERSION VERSION_LESS 3.0
)
project
(
gtest CXX C
)
project
(
gtest CXX C
)
set
(
PROJECT_VERSION
${
GOOGLETEST_VERSION
}
)
else
()
else
()
cmake_policy
(
SET CMP0048 NEW
)
cmake_policy
(
SET CMP0048 NEW
)
project
(
gtest VERSION
${
GOOGLETEST_VERSION
}
LANGUAGES CXX C
)
project
(
gtest VERSION
${
GOOGLETEST_VERSION
}
LANGUAGES CXX C
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment