Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenxiZhou0619 committed Mar 2, 2023
2 parents 9ed6258 + 2668453 commit 77894c0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,17 @@ add_custom_command(TARGET Moer POST_BUILD
${EMBREE_DLL} $<TARGET_FILE_DIR:Moer>)

target_link_libraries(Moer PUBLIC embree3)
target_link_libraries(Moer PUBLIC tinyobjloader)
target_link_libraries(Moer PUBLIC tinyobjloader)

if(APPLE)
execute_process(
COMMAND uname -m
RESULT_VARIABLE result
OUTPUT_VARIABLE MOER_OSX_NATIVE_ARCHITECTURE
OUTPUT_STRIP_TRAILING_WHITESPACE
)

if(${MOER_OSX_NATIVE_ARCHITECTURE} STREQUAL "arm64")
set_target_properties(Moer PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
endif()
endif()

0 comments on commit 77894c0

Please sign in to comment.