Skip to content

Commit

Permalink
Give tests access to IOR if available
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopherHogan committed Jan 12, 2022
1 parent dca824a commit 81e0324
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,14 @@ endif()

if(CMAKE_PROJECT_NAME STREQUAL HERMES AND BUILD_TESTING)
find_package(Catch2 REQUIRED)
find_program(IOR_EXE ior)
if(IOR_EXE)
message(STATUS "Found ior at ${IOR_EXE}")
set(HERMES_HAVE_IOR "YES")
else()
message(WARNING "Couldn't find the 'ior' executable. Some tests will be skipped.")
set(HERMES_HAVE_IOR "NO")
endif()
enable_testing()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test)
endif()
Expand Down

0 comments on commit 81e0324

Please sign in to comment.