Skip to content

Commit

Permalink
Update search path
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeckingsale committed Nov 7, 2023
1 parent f6225d6 commit 040e358
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/install/using-with-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ cmake_minimum_required(VERSION 3.14)

project(using_with_cmake)

if(NOT DEFINED umpire_DIR OR NOT EXISTS ${umpire_DIR}/lib/cmake/umpire/umpire-config.cmake)
if(NOT DEFINED umpire_DIR)
message(FATAL_ERROR "Missing required 'umpire_DIR' variable pointing to an installed Umpire")
endif()

find_package(umpire REQUIRED
NO_DEFAULT_PATH
PATHS ${umpire_DIR}/lib/cmake/umpire)
PATHS ${umpire_DIR})

add_executable(using-with-cmake using-with-cmake.cpp)
target_link_libraries(using-with-cmake umpire)

0 comments on commit 040e358

Please sign in to comment.