Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Aland, Sebastian
amdis
Commits
54bff534
Commit
54bff534
authored
Feb 24, 2016
by
Praetorius, Simon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake with test_compile_feature macro
parent
12da37b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
AMDiS/cmake3/test_compile_features.cmake
AMDiS/cmake3/test_compile_features.cmake
+6
-6
demo/init/ellipt.dat.2d
demo/init/ellipt.dat.2d
+2
-2
No files found.
AMDiS/cmake3/test_compile_features.cmake
View file @
54bff534
macro
(
test_compile_features RESULT_VAR TARGET SCOPE
)
# feature1 feature2 feature3 ...)
function
(
test_compile_features RESULT_VAR TARGET SCOPE
)
# feature1 feature2 feature3 ...)
set
(
_FEATURES
""
)
foreach
(
FEATURE
${
ARGN
}
)
set
(
_FEATURES
"
${
_FEATURES
}
${
FEATURE
}
"
)
...
...
@@ -11,7 +11,7 @@ macro(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature
return
()
endif
()
set
(
_DIR
${
BASE_DIR
}
/cmake3/tmp
)
set
(
_DIR
${
CMAKE_BINARY_DIR
}
/test_cxx11
)
message
(
STATUS
"Test for cxx11 features for target
${
TARGET
}
"
)
execute_process
(
COMMAND
${
CMAKE_COMMAND
}
-E make_directory
${
_DIR
}
)
...
...
@@ -35,7 +35,7 @@ macro(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature
endif
()
mark_as_advanced
(
${
RESULT_VAR
}
)
unset
(
_RES_VAR
)
unset
(
_DIR
)
unset
(
_FEATURES
)
endmacro
(
test_compile_features
)
\ No newline at end of file
#unset(_RES_VAR)
#unset(_DIR)
#unset(_FEATURES)
endfunction
(
test_compile_features
)
\ No newline at end of file
demo/init/ellipt.dat.2d
View file @
54bff534
...
...
@@ -27,9 +27,9 @@ ellipt->marker[0]->MSGamma: 0.5
ellipt->adapt[0]->tolerance: 1e-4
ellipt->adapt[0]->refine bisections: 2
ellipt->adapt->max iteration:
1
0
ellipt->adapt->max iteration: 0
ellipt->output->filename: output/ellipt.2d
ellipt->output->filename: output/ellipt
_r0
.2d
ellipt->output->ParaView format: 1
ellipt->output->ParaView mode: 1
ellipt->output->ARH2 format: 1
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