From dd286f3bd746401d2387be53a07fd6154f8f3452 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:51:33 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- units/CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/units/CMakeLists.txt b/units/CMakeLists.txt index 41c1abcb..44fc120b 100644 --- a/units/CMakeLists.txt +++ b/units/CMakeLists.txt @@ -156,7 +156,10 @@ elseif(UNITS_BUILD_STATIC_LIBRARY) if(CMAKE_CXX_STANDARD GREATER 16) target_compile_definitions(units PRIVATE -DUNITS_CONSTEXPR_IF_SUPPORTED=1) endif() - if(UNITS_INSTALL AND NOT UNITS_BINARY_ONLY_INSTALL AND NOT SKBUILD) + if(UNITS_INSTALL + AND NOT UNITS_BINARY_ONLY_INSTALL + AND NOT SKBUILD + ) install(TARGETS units ${UNITS_LIBRARY_EXPORT_COMMAND} DESTINATION ${CMAKE_INSTALL_LIBDIR} # INCLUDES DESTINATION # include/${PROJECT_NAME} @@ -179,7 +182,10 @@ target_include_directories( $ ) target_compile_definitions(header_only INTERFACE UNITS_HEADER_ONLY) -if(UNITS_INSTALL AND NOT UNITS_BINARY_ONLY_ AND NOT SKBUILD) +if(UNITS_INSTALL + AND NOT UNITS_BINARY_ONLY_ + AND NOT SKBUILD +) install(TARGETS header_only ${UNITS_LIBRARY_EXPORT_COMMAND}) endif() if(UNITS_NAMESPACE) @@ -194,7 +200,10 @@ if(UNITS_BASE_TYPE) endif() add_library(${UNITS_LC_PROJECT_NAME}::header_only ALIAS header_only) -if(UNITS_INSTALL AND NOT UNITS_BINARY_ONLY_INSTALL AND NOT SKBUILD) +if(UNITS_INSTALL + AND NOT UNITS_BINARY_ONLY_INSTALL + AND NOT SKBUILD +) install(FILES ${units_header_files} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/${UNITS_LC_PROJECT_NAME} )