Skip to content
This repository was archived by the owner on Apr 8, 2024. It is now read-only.

Commit 653955b

Browse files
committed
Moved hack to global cmakelists
1 parent bf96c0a commit 653955b

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ endif ()
1212

1313
if (APPLE)
1414
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)
1518
else()
1619
option(SPACEMESHCUDA "Build with CUDA support" ON)
1720
endif()

src/CMakeLists.txt

-5
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ else()
3131
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
3232
endif()
3333

34-
if (APPLE)
35-
# we should check here for ARM / Intel too
36-
add_compile_definitions(SPACEMESH_VULKAN_COMPATIBILITY_NEEDED=1)
37-
endif()
38-
3934
include_directories(.)
4035
include_directories(../include)
4136

src/vulkan/gen/CMakeLists.txt

-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@ add_executable(shaders-gen ${SOURCES})
2828
if(WIN32)
2929
target_link_libraries(shaders-gen "$ENV{VULKAN_SDK}/Lib/vulkan-1.lib" "$ENV{VULKAN_SDK}/Lib/shaderc_combined.lib")
3030
elseif(APPLE)
31-
# we should check for M1 vs Intel here too
32-
add_compile_definitions(SPACEMESH_VULKAN_COMPATIBILITY_NEEDED=1)
3331
target_link_libraries(shaders-gen -L$ENV{VULKAN_SDK}/lib -lvulkan shaderc_combined)
3432
elseif(UNIX)
3533
if (SPACEMESH_ARCH_ARM64)

0 commit comments

Comments
 (0)