Commit 54bff534 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

CMake with test_compile_feature macro

parent 12da37b5
macro(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature3 ...) function(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature3 ...)
set(_FEATURES "") set(_FEATURES "")
foreach(FEATURE ${ARGN}) foreach(FEATURE ${ARGN})
set(_FEATURES "${_FEATURES} ${FEATURE}") set(_FEATURES "${_FEATURES} ${FEATURE}")
...@@ -11,7 +11,7 @@ macro(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature ...@@ -11,7 +11,7 @@ macro(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature
return () return ()
endif () endif ()
set(_DIR ${BASE_DIR}/cmake3/tmp) set(_DIR ${CMAKE_BINARY_DIR}/test_cxx11)
message(STATUS "Test for cxx11 features for target ${TARGET}") message(STATUS "Test for cxx11 features for target ${TARGET}")
execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${_DIR}) execute_process(COMMAND ${CMAKE_COMMAND} -E make_directory ${_DIR})
...@@ -35,7 +35,7 @@ macro(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature ...@@ -35,7 +35,7 @@ macro(test_compile_features RESULT_VAR TARGET SCOPE) # feature1 feature2 feature
endif () endif ()
mark_as_advanced(${RESULT_VAR}) mark_as_advanced(${RESULT_VAR})
unset(_RES_VAR) #unset(_RES_VAR)
unset(_DIR) #unset(_DIR)
unset(_FEATURES) #unset(_FEATURES)
endmacro(test_compile_features) endfunction(test_compile_features)
\ No newline at end of file \ No newline at end of file
...@@ -27,9 +27,9 @@ ellipt->marker[0]->MSGamma: 0.5 ...@@ -27,9 +27,9 @@ ellipt->marker[0]->MSGamma: 0.5
ellipt->adapt[0]->tolerance: 1e-4 ellipt->adapt[0]->tolerance: 1e-4
ellipt->adapt[0]->refine bisections: 2 ellipt->adapt[0]->refine bisections: 2
ellipt->adapt->max iteration: 10 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 format: 1
ellipt->output->ParaView mode: 1 ellipt->output->ParaView mode: 1
ellipt->output->ARH2 format: 1 ellipt->output->ARH2 format: 1
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment