From 657287e774c6d7f740bedbcbd9846de473dd1b18 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Tue, 29 Oct 2024 10:15:21 +0800 Subject: format cmake files (#5406) * format cmake files * format code --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com> --- cmake/SlangTarget.cmake | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) (limited to 'cmake/SlangTarget.cmake') diff --git a/cmake/SlangTarget.cmake b/cmake/SlangTarget.cmake index bf1abe3a9..4a3b75704 100644 --- a/cmake/SlangTarget.cmake +++ b/cmake/SlangTarget.cmake @@ -232,7 +232,10 @@ function(slang_add_target dir type) if(CMAKE_SYSTEM_NAME MATCHES "Darwin") foreach(link_framework ${ARG_LINK_WITH_FRAMEWORK}) - target_link_libraries(${target} PRIVATE "-framework ${link_framework}") + target_link_libraries( + ${target} + PRIVATE "-framework ${link_framework}" + ) endforeach() endif() @@ -294,7 +297,10 @@ function(slang_add_target dir type) PUBLIC "${ARG_EXPORT_MACRO_PREFIX}_STATIC" ) else() - message(WARNING "unhandled case in slang_add_target while setting export macro") + message( + WARNING + "unhandled case in slang_add_target while setting export macro" + ) endif() endif() @@ -394,18 +400,10 @@ function(slang_add_target dir type) install( TARGETS ${target} EXPORT SlangTargets - ARCHIVE - DESTINATION ${archive_subdir} - ${ARGN} - LIBRARY - DESTINATION ${library_subdir} - ${ARGN} - RUNTIME - DESTINATION ${runtime_subdir} - ${ARGN} - PUBLIC_HEADER - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} - ${ARGN} + ARCHIVE DESTINATION ${archive_subdir} ${ARGN} + LIBRARY DESTINATION ${library_subdir} ${ARGN} + RUNTIME DESTINATION ${runtime_subdir} ${ARGN} + PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} ${ARGN} ) endmacro() if(ARG_INSTALL) -- cgit v1.2.3