This repository was archived by the owner on Apr 8, 2024. It is now read-only.
File tree 3 files changed +3
-7
lines changed
3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ endif ()
12
12
13
13
if (APPLE )
14
14
option (SPACEMESHCUDA "Build with CUDA support" OFF )
15
+
16
+ # we should check here for ARM / Intel too
17
+ add_compile_definitions (SPACEMESH_VULKAN_COMPATIBILITY_NEEDED=1)
15
18
else ()
16
19
option (SPACEMESHCUDA "Build with CUDA support" ON )
17
20
endif ()
Original file line number Diff line number Diff line change @@ -31,11 +31,6 @@ else()
31
31
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC" )
32
32
endif ()
33
33
34
- if (APPLE )
35
- # we should check here for ARM / Intel too
36
- add_compile_definitions (SPACEMESH_VULKAN_COMPATIBILITY_NEEDED=1)
37
- endif ()
38
-
39
34
include_directories (.)
40
35
include_directories (../include )
41
36
Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ add_executable(shaders-gen ${SOURCES})
28
28
if (WIN32 )
29
29
target_link_libraries (shaders-gen "$ENV{VULKAN_SDK} /Lib/vulkan-1.lib" "$ENV{VULKAN_SDK} /Lib/shaderc_combined.lib" )
30
30
elseif (APPLE )
31
- # we should check for M1 vs Intel here too
32
- add_compile_definitions (SPACEMESH_VULKAN_COMPATIBILITY_NEEDED=1)
33
31
target_link_libraries (shaders-gen -L$ENV{VULKAN_SDK} /lib -lvulkan shaderc_combined)
34
32
elseif (UNIX )
35
33
if (SPACEMESH_ARCH_ARM64)
You can’t perform that action at this time.
0 commit comments