Skip to content
Snippets Groups Projects
Commit ac3454f4 authored by Dominik Thoennes's avatar Dominik Thoennes
Browse files

fix waLBerla_compile_test function in subdirectories

parent 5609ff86
No related branches found
No related tags found
No related merge requests found
......@@ -55,10 +55,9 @@
function ( get_current_module_name moduleNameOut )
foreach( moduleDir ${ARGN} ${WALBERLA_MODULE_DIRS} )
get_filename_component( moduleNameShort ${CMAKE_CURRENT_SOURCE_DIR} NAME_WE )
file( RELATIVE_PATH moduleFolder ${moduleDir} ${CMAKE_CURRENT_SOURCE_DIR} )
if ( NOT ${moduleFolder} MATCHES "\\.\\./.*" )
set ( ${moduleNameOut} ${moduleFolder} PARENT_SCOPE )
cmake_path(GET moduleFolder PARENT_PATH moduleNameOut)
return()
endif()
endforeach()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment