Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 1, 2023
1 parent e56a8a5 commit 1edda60
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 1edda60

Please sign in to comment.