Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
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
benchmark
Commits
e5ea03ce
Unverified
Commit
e5ea03ce
authored
Jan 31, 2020
by
Alex Reinking
Committed by
GitHub
Jan 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cxx03 standard selection, option override in CMake 3.13+. Fixes #933 (#934)
parent
5ac80de0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
CMakeLists.txt
+1
-0
CMakeLists.txt
test/CMakeLists.txt
+2
-1
No files found.
CMakeLists.txt
View file @
e5ea03ce
...
@@ -6,6 +6,7 @@ foreach(p
...
@@ -6,6 +6,7 @@ foreach(p
CMP0056
# export EXE_LINKER_FLAGS to try_run
CMP0056
# export EXE_LINKER_FLAGS to try_run
CMP0057
# Support no if() IN_LIST operator
CMP0057
# Support no if() IN_LIST operator
CMP0063
# Honor visibility properties for all targets
CMP0063
# Honor visibility properties for all targets
CMP0077
# Allow option() overrides in importing projects
)
)
if
(
POLICY
${
p
}
)
if
(
POLICY
${
p
}
)
cmake_policy
(
SET
${
p
}
NEW
)
cmake_policy
(
SET
${
p
}
NEW
)
...
...
test/CMakeLists.txt
View file @
e5ea03ce
...
@@ -148,7 +148,8 @@ if (BENCHMARK_HAS_CXX03_FLAG)
...
@@ -148,7 +148,8 @@ if (BENCHMARK_HAS_CXX03_FLAG)
compile_benchmark_test
(
cxx03_test
)
compile_benchmark_test
(
cxx03_test
)
set_target_properties
(
cxx03_test
set_target_properties
(
cxx03_test
PROPERTIES
PROPERTIES
COMPILE_FLAGS
"-std=c++03"
)
CXX_STANDARD 98
CXX_STANDARD_REQUIRED YES
)
# libstdc++ provides different definitions within <map> between dialects. When
# libstdc++ provides different definitions within <map> between dialects. When
# LTO is enabled and -Werror is specified GCC diagnoses this ODR violation
# LTO is enabled and -Werror is specified GCC diagnoses this ODR violation
# causing the test to fail to compile. To prevent this we explicitly disable
# causing the test to fail to compile. To prevent this we explicitly disable
...
...
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