Skip to content

Commit

Permalink
disable CheckGlobals (unnecessary and slows down Mitsuba 2 re-build e…
Browse files Browse the repository at this point in the history
…ven after Embree has been compiled)
  • Loading branch information
wjakob committed Sep 6, 2020
1 parent 44a1971 commit ef83da4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions kernels/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ IF (EMBREE_ISA_SSE42 AND EMBREE_LIBRARY_FILES_SSE42)
SET_TARGET_PROPERTIES(embree_sse42 PROPERTIES COMPILE_FLAGS "${FLAGS_SSE42}")
SET_PROPERTY(TARGET embree_sse42 PROPERTY FOLDER kernels)
SET(EMBREE_LIBRARIES ${EMBREE_LIBRARIES} embree_sse42)
CheckGlobals(embree_sse42)
# CheckGlobals(embree_sse42)
IF (EMBREE_STATIC_LIB)
INSTALL(TARGETS embree_sse42 EXPORT embree_sse42-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel)
INSTALL(EXPORT embree_sse42-targets DESTINATION ${EMBREE_CMAKEEXPORT_DIR} COMPONENT devel)
Expand All @@ -261,7 +261,7 @@ IF (EMBREE_ISA_AVX AND EMBREE_LIBRARY_FILES_AVX)
SET_TARGET_PROPERTIES(embree_avx PROPERTIES COMPILE_FLAGS "${FLAGS_AVX}")
SET_PROPERTY(TARGET embree_avx PROPERTY FOLDER kernels)
SET(EMBREE_LIBRARIES ${EMBREE_LIBRARIES} embree_avx)
CheckGlobals(embree_avx)
# CheckGlobals(embree_avx)
IF (EMBREE_STATIC_LIB)
INSTALL(TARGETS embree_avx EXPORT embree_avx-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel)
INSTALL(EXPORT embree_avx-targets DESTINATION ${EMBREE_CMAKEEXPORT_DIR} COMPONENT devel)
Expand All @@ -275,7 +275,7 @@ IF (EMBREE_ISA_AVX2 AND EMBREE_LIBRARY_FILES_AVX2)
SET_TARGET_PROPERTIES(embree_avx2 PROPERTIES COMPILE_FLAGS "${FLAGS_AVX2}")
SET_PROPERTY(TARGET embree_avx2 PROPERTY FOLDER kernels)
SET(EMBREE_LIBRARIES ${EMBREE_LIBRARIES} embree_avx2)
CheckGlobals(embree_avx2)
# CheckGlobals(embree_avx2)
IF (EMBREE_STATIC_LIB)
INSTALL(TARGETS embree_avx2 EXPORT embree_avx2-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel)
INSTALL(EXPORT embree_avx2-targets DESTINATION ${EMBREE_CMAKEEXPORT_DIR} COMPONENT devel)
Expand All @@ -289,7 +289,7 @@ IF (EMBREE_ISA_AVX512KNL AND EMBREE_LIBRARY_FILES_AVX512KNL)
SET_TARGET_PROPERTIES(embree_avx512knl PROPERTIES COMPILE_FLAGS "${FLAGS_AVX512KNL}")
SET_PROPERTY(TARGET embree_avx512knl PROPERTY FOLDER kernels)
SET(EMBREE_LIBRARIES ${EMBREE_LIBRARIES} embree_avx512knl)
CheckGlobals(embree_avx512knl)
# CheckGlobals(embree_avx512knl)
IF (EMBREE_STATIC_LIB)
INSTALL(TARGETS embree_avx512knl EXPORT embree_avx512knl-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel)
INSTALL(EXPORT embree_avx512knl-targets DESTINATION ${EMBREE_CMAKEEXPORT_DIR} COMPONENT devel)
Expand All @@ -303,7 +303,7 @@ IF (EMBREE_ISA_AVX512SKX AND EMBREE_LIBRARY_FILES_AVX512SKX)
SET_TARGET_PROPERTIES(embree_avx512skx PROPERTIES COMPILE_FLAGS "${FLAGS_AVX512SKX}")
SET_PROPERTY(TARGET embree_avx512skx PROPERTY FOLDER kernels)
SET(EMBREE_LIBRARIES ${EMBREE_LIBRARIES} embree_avx512skx)
CheckGlobals(embree_avx512skx)
# CheckGlobals(embree_avx512skx)
IF (EMBREE_STATIC_LIB)
INSTALL(TARGETS embree_avx512skx EXPORT embree_avx512skx-targets ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel)
INSTALL(EXPORT embree_avx512skx-targets DESTINATION ${EMBREE_CMAKEEXPORT_DIR} COMPONENT devel)
Expand Down

0 comments on commit ef83da4

Please sign in to comment.