Skip to content

Commit

Permalink
Fix macOS builds outputting framework libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
frenzibyte committed Sep 15, 2023
1 parent 8703c54 commit 3569e07
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ target_link_libraries(veldrid-spirv
shaderc
)

set_target_properties(veldrid-spirv PROPERTIES FRAMEWORK true)
# macOS builds are expected to be dynamic libraries rather than frameworks,
# only output frameworks for iOS builds.
if("${CMAKE_SYSTEM_NAME}" STREQUAL "iOS")
set_target_properties(veldrid-spirv PROPERTIES FRAMEWORK true)
endif()

set_target_properties(veldrid-spirv PROPERTIES MACOSX_FRAMEWORK_IDENTIFIER "sh.ppy.veldrid-spirv")

set_target_properties(veldrid-spirv PROPERTIES PREFIX "lib")
Expand Down

0 comments on commit 3569e07

Please sign in to comment.