Skip to content

Commit

Permalink
Adding catch for CMake version with Mac client
Browse files Browse the repository at this point in the history
Also removing another leftover from the old shader inclusion system
  • Loading branch information
colincornaby committed Apr 10, 2024
1 parent 2099a8d commit 383ab5d
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Sources/Plasma/Apps/plClient/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ if(APPLE)
TARGETS plClient
DESTINATION client
)

if(${CMAKE_VERSION} VERSION_LESS 3.28)
message(FATAL_ERROR "Cannot build Mac client without CMake 3.28")
endif()

if(PLASMA_APPLE_DEVELOPMENT_TEAM_ID)
set_target_properties(plClient PROPERTIES
Expand Down Expand Up @@ -245,13 +249,6 @@ target_link_libraries(
)
target_include_directories(plClient PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")

if(APPLE)
list(APPEND plClient_RESOURCES
$<TARGET_FILE:pfMetalPipelineShadersMSL21>
$<TARGET_FILE:pfMetalPipelineShadersMSL23>
)
endif()

if(PLASMA_EXTERNAL_RELEASE)
set_target_properties(plClient PROPERTIES OUTPUT_NAME "UruExplorer")
endif(PLASMA_EXTERNAL_RELEASE)
Expand Down

0 comments on commit 383ab5d

Please sign in to comment.