File tree Expand file tree Collapse file tree 5 files changed +23
-8
lines changed
Expand file tree Collapse file tree 5 files changed +23
-8
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,3 @@ string(REPLACE ";" " " OSPRAY_OCL_OPTIONS_STR "${OSPRAY_OCL_OPTIONS}")
102102
103103set (OSPRAY_OCL_OTHER_OPTIONS_STR "${OSPRAY_OCL_OTHER_OPTIONS} " )
104104string (REPLACE ";" " " OSPRAY_OCL_OTHER_OPTIONS_STR "${OSPRAY_OCL_OTHER_OPTIONS} " )
105-
106- if (WIN32 )
107- # workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/18311
108- set (CMAKE_NINJA_CMCLDEPS_RC OFF )
109- endif ()
Original file line number Diff line number Diff line change @@ -42,5 +42,16 @@ else()
4242 string (APPEND CMAKE_SHARED_LINKER_FLAGS_DEBUG " /nodefaultlib:libmmdd.lib" )
4343 string (APPEND CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO " /nodefaultlib:libmmd.lib" )
4444 string (APPEND CMAKE_SHARED_LINKER_FLAGS_RELEASE " /nodefaultlib:libmmd.lib" )
45+ elseif (OSPRAY_COMPILER_DPCPP)
46+ foreach (FLAG
47+ CMAKE_CXX_FLAGS_DEBUG
48+ CMAKE_CXX_FLAGS_RELEASE
49+ CMAKE_CXX_FLAGS_RELWITHDEBINFO
50+ CMAKE_C_FLAGS_DEBUG
51+ CMAKE_C_FLAGS_RELEASE
52+ CMAKE_C_FLAGS_RELWITHDEBINFO
53+ )
54+ string (APPEND ${FLAG} " /Qimf-use-svml:false" )
55+ endforeach ()
4556 endif ()
4657endif ()
Original file line number Diff line number Diff line change @@ -341,7 +341,13 @@ macro(ospray_configure_compiler)
341341
342342 if ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "IntelLLVM" OR OSPRAY_MODULE_GPU)
343343 set (OSPRAY_COMPILER_DPCPP TRUE )
344- include (dpcpp)
344+ if (WIN32 ) # icx on Windows behaves like msvc
345+ # workaround for https://gitlab.kitware.com/cmake/cmake/-/issues/18311
346+ set (CMAKE_NINJA_CMCLDEPS_RC OFF )
347+ include (msvc )
348+ else ()
349+ include (dpcpp)
350+ endif ()
345351 elseif ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "Intel" )
346352 set (OSPRAY_COMPILER_ICC TRUE )
347353 if (WIN32 ) # icc on Windows behaves like msvc
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ cmake -L `
1616 - D BUILD_DEPENDENCIES_ONLY= ON `
1717 - D CMAKE_INSTALL_PREFIX= $DEP_DIR `
1818 - D CMAKE_INSTALL_LIBDIR= lib `
19- - D BUILD_EMBREE_FROM_SOURCE= OFF `
19+ - D BUILD_EMBREE_FROM_SOURCE= ON `
20+ - D BUILD_ISA_AVX512= OFF `
2021 - D BUILD_OIDN= ON `
2122 - D BUILD_OIDN_FROM_SOURCE= OFF `
2223 - D BUILD_OSPRAY_MODULE_MPI= ON `
@@ -32,6 +33,9 @@ cd $ROOT_DIR
3233md build_release
3334cd build_release
3435
36+ # Clean out build directory to be sure we are doing a fresh build
37+ rm - r - fo *
38+
3539# Setup environment for dependencies
3640$env: CMAKE_PREFIX_PATH = $DEP_DIR
3741
Original file line number Diff line number Diff line change @@ -41,7 +41,6 @@ if (BUILD_EMBREE_FROM_SOURCE)
4141 -DCMAKE_INSTALL_LIBDIR=${CMAKE_INSTALL_LIBDIR}
4242 -DCMAKE_INSTALL_DOCDIR=${CMAKE_INSTALL_DOCDIR}
4343 -DCMAKE_INSTALL_BINDIR=${CMAKE_INSTALL_BINDIR}
44- -DEMBREE_ISPC_SUPPORT=ON
4544 $<$<BOOL :${DOWNLOAD_TBB} >:-DEMBREE_TBB_ROOT=${TBB_PATH} >
4645 $<$<BOOL :${DOWNLOAD_ISPC} >:-DEMBREE_ISPC_EXECUTABLE=${ISPC_PATH} >
4746 -DCMAKE_BUILD_TYPE=${DEPENDENCIES_BUILD_TYPE}
You can’t perform that action at this time.
0 commit comments