Skip to content

Commit

Permalink
Merge branch 'project_name' of https://github.com/LLNL/units into pro…
Browse files Browse the repository at this point in the history
…ject_name
  • Loading branch information
phlptp committed Sep 1, 2023
2 parents 4945a4e + 1edda60 commit 0073510
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/find_package_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ project(units-find-package-test)
include(CTest)

if(NOT UNITS_TARGET)
set(UNITS_TARGET units)
set(UNITS_TARGET units)
endif()

# Test the HELICS CMake package config
Expand All @@ -38,6 +38,8 @@ endif()
# Test the header only targets
add_executable(header_only-exe ../pkg_test_code/header_only.cpp)
target_link_libraries(header_only-exe ${UNITS_TARGET}::header_only)
target_compile_definitions(header_only-exe PUBLIC UNITS_LIB_HEADER="${UNITS_TARGET}/units.hpp")
target_compile_definitions(
header_only-exe PUBLIC UNITS_LIB_HEADER="${UNITS_TARGET}/units.hpp"
)
add_test(NAME header_only-exe COMMAND header_only-exe)
set_property(TEST header_only-exe PROPERTY PASS_REGULAR_EXPRESSION "PASS")

0 comments on commit 0073510

Please sign in to comment.