Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Backofen, Rainer
amdis
Commits
12d3dc5c
Commit
12d3dc5c
authored
Feb 18, 2016
by
Praetorius, Simon
Browse files
compiler-feature test modified
parent
7e699189
Changes
3
Hide whitespace changes
Inline
Side-by-side
AMDiS/CMakeLists.txt
View file @
12d3dc5c
...
...
@@ -268,13 +268,6 @@ else()
endif
()
if
(
${
CMAKE_VERSION
}
VERSION_GREATER
"3.0"
)
foreach
(
feature in
${
REQUIRED_CXX_FEATURES
}
)
target_compile_features
(
amdis INTERFACE feature
)
target_compile_features
(
muparser INTERFACE feature
)
endforeach
(
feature
)
endif
()
list
(
APPEND AMDIS_LIBS amdis
${
Boost_LIBRARIES
}
)
# some special treatements for Windows systems
...
...
AMDiS/cmake/dummy.cc
0 → 100644
View file @
12d3dc5c
AMDiS/cmake/enable_cxx11.cmake
View file @
12d3dc5c
...
...
@@ -6,6 +6,11 @@ if (ENABLE_CXX11)
set
(
CMAKE_CXX_STANDARD 11
)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
REQUIRED_CXX_FEATURES
"cxx_alias_templates"
"cxx_auto_type"
"cxx_lambdas"
"cxx_override"
"cxx_range_for"
"cxx_static_assert"
"cxx_variadic_templates"
)
add_library
(
test_compiler_features dummy.cc
)
foreach
(
feature
${
REQUIRED_CXX_FEATURES
}
)
target_compile_features
(
test_compiler_features PUBLIC
${
feature
}
)
endforeach
(
feature
)
else
()
if
(
CMAKE_COMPILER_IS_GNUCXX
)
set
(
GXX_MIN_VER
"4.8"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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