Skip to content

Commit 777b94c

Browse files
committed
Attempt to fix MacOS build
1 parent dae01f2 commit 777b94c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Calc/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ target_include_directories(Calc PRIVATE .)
2525

2626
target_compile_features(Calc PRIVATE cxx_std_11)
2727

28-
if (UNIX)
28+
if (UNIX AND NOT APPLE)
2929
target_compile_options(Calc PUBLIC -fPIC)
3030
target_link_libraries(Calc INTERFACE "-Wl,--no-undefined")
3131
elseif (APPLE)
3232
target_compile_options(Calc PUBLIC -stdlib=libc++)
33-
endif (UNIX)
33+
endif (UNIX AND NOT APPLE)
3434

3535
if (RR_USE_OPENCL)
3636
target_link_libraries(Calc PUBLIC CLW)

RadeonRays/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ endif (RR_USE_VULKAN)
190190

191191
target_compile_features(RadeonRays PRIVATE cxx_std_14)
192192

193-
if (UNIX)
193+
if (UNIX AND NOT APPLE)
194194
target_compile_options(RadeonRays PUBLIC -msse4.2 -fPIC)
195195
target_link_libraries(RadeonRays INTERFACE "-Wl,--no-undefined")
196196

@@ -201,6 +201,6 @@ if (UNIX)
201201
set_target_properties(RadeonRays PROPERTIES SOVERSION ${RR_API_VERSION})
202202
elseif (APPLE)
203203
target_compile_options(RadeonRays PUBLIC -stdlib=libc++)
204-
endif (UNIX)
204+
endif (UNIX AND NOT APPLE)
205205

206206

0 commit comments

Comments
 (0)