Skip to content

Commit

Permalink
Update ISPC to v1.24.0 and OSPRay to v3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Jun 27, 2024
1 parent 0df2709 commit 4277666
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
4 changes: 4 additions & 0 deletions embree/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ if (ENABLE_EMBREE)
)

TargetInstallDeps(EMBREE EMBREE_DEPENDS)
# ISPC use is conditional so it's not (currently) part of the deps file
if (USE_OSPRAY AND TARGET ISPC_BLD)
ExternalProject_Add_stepdependencies(EMBREE_BLD configure ISPC_BLD-install)
endif (USE_OSPRAY AND TARGET ISPC_BLD)

# Copy the license into position in CMAKE_BUNDLE_INSTALL_PREFIX
configure_file(
Expand Down
2 changes: 1 addition & 1 deletion ispc/ispc
Submodule ispc updated 455 files
23 changes: 12 additions & 11 deletions ispc/ispc.patch
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ diff -Naur ispc/cmake/FindZLIB.cmake ISPC_BLD/cmake/FindZLIB.cmake
+ endif()
+endif()
diff -Naur ispc/CMakeLists.txt ISPC_BLD/CMakeLists.txt
--- ispc/CMakeLists.txt 2023-12-21 14:05:10.132040601 -0500
+++ ISPC_BLD/CMakeLists.txt 2023-12-21 14:06:37.898556691 -0500
--- ispc/CMakeLists.txt 2024-06-26 20:46:06.003030179 -0400
+++ ISPC_BLD/CMakeLists.txt 2024-06-26 20:52:51.978011242 -0400
@@ -265,6 +265,7 @@
endif()

Expand All @@ -136,27 +136,28 @@ diff -Naur ispc/CMakeLists.txt ISPC_BLD/CMakeLists.txt
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/ispcrt/cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FixWindowsPath.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/FindLLVM.cmake)
@@ -626,6 +627,10 @@
target_link_libraries(${PROJECT_NAME} "-Wl,--start-group")
@@ -712,6 +713,10 @@
list(APPEND LINK_LIBRARIES "-Wl,--start-group")
endif()

+# Link against zlib
+find_package(ZLIB)
+target_link_libraries(${PROJECT_NAME} ${ZLIB_LIBRARIES})
+list(APPEND LINK_LIBRARIES ${ZLIB_LIBRARIES})
+
# Link against Clang libraries
foreach(clangLib ${CLANG_LIBRARY_LIST})
# Preferred way to build ISPC is to link it with individual clang static
@@ -676,7 +681,11 @@
@@ -762,7 +767,12 @@
# but it contains both libform.so and libcurses.so.
# We need libcurses.so only, so exclude libform.so from the list.
list(FILTER CURSES_LIBRARIES EXCLUDE REGEX ".*libform.*")
- target_link_libraries(${PROJECT_NAME} pthread ${CURSES_LIBRARIES})
- list(APPEND LINK_LIBRARIES pthread ${CURSES_LIBRARIES})
+ list(APPEND LINK_LIBRARIES pthread)
+ if (CURSES_NCURSES_LIBRARY)
+ target_link_libraries(${PROJECT_NAME} pthread ${CURSES_NCURSES_LIBRARY})
+ elseif (CURSES_LIBRARIES)
+ target_link_libraries(${PROJECT_NAME} pthread ${CURSES_LIBRARIES})
+ endif (CURSES_NCURSES_LIBRARY)
+ list(APPEND LINK_LIBRARIES ${CURSES_NCURSES_LIBRARY})
+ elseif (CURSES_NCURSES_LIBRARY)
+ list(APPEND LINK_LIBRARIES ${CURSES_LIBRARIES})
+ endif ()
endif()
endif()

2 changes: 1 addition & 1 deletion ospray/ospray
Submodule ospray updated 401 files

0 comments on commit 4277666

Please sign in to comment.