Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
update gitmodules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike-Leo-Smith committed Nov 27, 2024
1 parent 52caeaf commit 5f68543
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
url = https://github.com/syoyo/tinyexr.git
[submodule "src/compute"]
path = src/compute
url = git@github.com:LuisaGroup/LuisaCompute-coroutine.git
branch = refactor-api
url = https://github.com/LuisaGroup/LuisaCompute-coroutine.git
branch = next
[submodule "src/ext/json"]
path = src/ext/json
url = https://github.com/nlohmann/json.git
9 changes: 9 additions & 0 deletions src/util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,15 @@ target_link_libraries(luisa-render-util PUBLIC
luisa::compute
luisa-render-include
luisa-render-ext)

# work around the clang bug: https://github.com/Homebrew/homebrew-core/issues/169820
if (APPLE AND CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 18)
cmake_path(GET CMAKE_CXX_COMPILER PARENT_PATH CLANG_BIN_PATH)
cmake_path(GET CLANG_BIN_PATH PARENT_PATH CLANG_ROOT_PATH)
target_link_libraries(luisa-compute-core PUBLIC "-L${CLANG_ROOT_PATH}/lib/c++")
endif ()

set_target_properties(luisa-render-util PROPERTIES
WINDOWS_EXPORT_ALL_SYMBOLS ON
UNITY_BUILD ${LUISA_RENDER_ENABLE_UNITY_BUILD})
Expand Down

0 comments on commit 5f68543

Please sign in to comment.