Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
0caf9865
Commit
0caf9865
authored
Mar 25, 2019
by
onqtam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reverted the removal of this if/else branching - this is the easiest way to get -std=c++0x support
parent
ff51a32b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
test/CMakeLists.txt
test/CMakeLists.txt
+5
-1
No files found.
test/CMakeLists.txt
View file @
0caf9865
...
...
@@ -65,7 +65,11 @@ set_target_properties(doctest_main PROPERTIES
COMPILE_OPTIONS
"$<$<CXX_COMPILER_ID:MSVC>:/EHsc;$<$<CONFIG:Release>:/Od>>"
)
target_compile_features
(
doctest_main PUBLIC cxx_std_11
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.8.0"
)
target_compile_features
(
doctest_main PUBLIC cxx_range_for
)
else
()
target_compile_features
(
doctest_main PUBLIC cxx_std_11
)
endif
()
target_include_directories
(
doctest_main PRIVATE
"thirdparty/doctest"
)
# https://stackoverflow.com/questions/2368811/how-to-set-warning-level-in-cmake
...
...
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