Require C++14 standard for all apps and libs

External apllications which did not set the C++ standard to 14 in their CMakeLists.txt failed to build. This change allows them to build without further user actions.
parent 79da07b5
Pipeline #7261 passed with stages
in 284 minutes and 1 second
......@@ -111,6 +111,8 @@ function ( waLBerla_add_module )
waLBerla_register_dependency ( ${moduleName} ${ARG_DEPENDS} )
set_property( TARGET ${moduleName} PROPERTY CXX_STANDARD 14 )
# This property is needed for visual studio to group modules together
if( WALBERLA_GROUP_PROJECTS )
set_property( TARGET ${moduleLibraryName} PROPERTY FOLDER "SRC" )
......@@ -228,6 +230,7 @@ function ( waLBerla_add_executable )
target_link_modules ( ${ARG_NAME} ${ARG_DEPENDS} )
target_link_libraries( ${ARG_NAME} ${SERVICE_LIBS} )
set_property( TARGET ${ARG_NAME} PROPERTY CXX_STANDARD 14 )
if( WALBERLA_GROUP_PROJECTS )
if( NOT ARG_GROUP )
......
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