Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
googletest
Commits
67265e07
Commit
67265e07
authored
Feb 04, 2019
by
Matthias Grob
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: move global project definition to beginning
such that necessary cmake variables to detect Cygwin are defined when setting the C++ standard and we can distinguish.
parent
0ea2d8f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
CMakeLists.txt
CMakeLists.txt
+3
-3
No files found.
CMakeLists.txt
View file @
67265e07
cmake_minimum_required
(
VERSION 2.8.8
)
cmake_minimum_required
(
VERSION 2.8.8
)
project
(
googletest-distribution
)
set
(
GOOGLETEST_VERSION 1.9.0
)
if
(
CMAKE_VERSION VERSION_LESS
"3.1"
)
if
(
CMAKE_VERSION VERSION_LESS
"3.1"
)
add_definitions
(
-std=c++11
)
add_definitions
(
-std=c++11
)
else
()
else
()
...
@@ -12,9 +15,6 @@ if (POLICY CMP0048)
...
@@ -12,9 +15,6 @@ if (POLICY CMP0048)
cmake_policy
(
SET CMP0048 NEW
)
cmake_policy
(
SET CMP0048 NEW
)
endif
(
POLICY CMP0048
)
endif
(
POLICY CMP0048
)
project
(
googletest-distribution
)
set
(
GOOGLETEST_VERSION 1.9.0
)
enable_testing
()
enable_testing
()
include
(
CMakeDependentOption
)
include
(
CMakeDependentOption
)
...
...
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