summaryrefslogtreecommitdiffstats
path: root/cmake/SlangTarget.cmake
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2024-10-29 10:15:21 +0800
committerGitHub <noreply@github.com>2024-10-29 10:15:21 +0800
commit657287e774c6d7f740bedbcbd9846de473dd1b18 (patch)
tree0466c5182a4331df4442551dc5305aece34b1e85 /cmake/SlangTarget.cmake
parentd38fbaefe4e4e43f9febc1afb985227a221963ea (diff)
format cmake files (#5406)
* format cmake files * format code --------- Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'cmake/SlangTarget.cmake')
-rw-r--r--cmake/SlangTarget.cmake26
1 files changed, 12 insertions, 14 deletions
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)