Skip to content

Commit

Permalink
Merge branch 'enable-xdmfdiff-tests' into 'master'
Browse files Browse the repository at this point in the history
[cmake] Fixed xdmfdiff-tests not appearing

See merge request ogs/ogs!5115
  • Loading branch information
TomFischer committed Sep 26, 2024
2 parents c47f7b3 + f3ccbf6 commit 4aa2fc4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ if(_build_chemistry_lib)
endif()

if(OGS_BUILD_CLI OR OGS_BUILD_UTILS OR OGS_BUILD_TESTING)
if(TARGET OgsXdmf AND OGS_BUILD_TESTING)
add_subdirectory(Tests/xdmfdiff)
endif()
add_subdirectory(ParameterLib)
add_subdirectory(MaterialLib)
add_subdirectory(ProcessLib)
endif()
if(TARGET OgsXdmf)
add_subdirectory(Tests/xdmfdiff)
endif()
if(OGS_BUILD_TESTING AND PROJECT_IS_TOP_LEVEL)
add_subdirectory(Tests)
endif()
Expand Down
1 change: 1 addition & 0 deletions scripts/cmake/DependenciesExternalProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ if(NOT ZLIB_FOUND)
set(ZLIB_LIBRARIES
${build_dir_ZLIB}/${CMAKE_INSTALL_LIBDIR}/zlibstatic${_zlib_debug_postfix}${CMAKE_STATIC_LIBRARY_SUFFIX}
)
set(ZLIB_INCLUDE_DIRS ${build_dir_ZLIB})
endif()
set(_EXT_LIBS ${_EXT_LIBS} ZLIB CACHE INTERNAL "")
endif()
Expand Down

0 comments on commit 4aa2fc4

Please sign in to comment.