From 8955f572a136c73d88e35ba9dcc1414933405d6e Mon Sep 17 00:00:00 2001 From: Matthias Hochsteger Date: Thu, 14 Sep 2023 10:49:07 +0200 Subject: [PATCH] Update OpenCascade --- CMakeLists.txt | 2 +- cmake/SuperBuild.cmake | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d8963c2a..61edb577 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -401,7 +401,7 @@ if (USE_OCC) list(APPEND OCC_LIBRARIES ${Fontconfig_LIBRARIES}) endif() endif(OpenCASCADE_WITH_FREETYPE) - if(UNIX AND NOT APPLE) + if(UNIX AND NOT APPLE AND NOT EMSCRIPTEN) set(THREADS_PREFER_PTHREAD_FLAG ON) find_package(Threads REQUIRED) list(APPEND OCC_LIBRARIES Threads::Threads) diff --git a/cmake/SuperBuild.cmake b/cmake/SuperBuild.cmake index 03ae3907..dfd9adda 100644 --- a/cmake/SuperBuild.cmake +++ b/cmake/SuperBuild.cmake @@ -89,8 +89,8 @@ if(BUILD_OCC) set(OCC_DIR ${CMAKE_CURRENT_BINARY_DIR}/dependencies/occ) ExternalProject_Add(project_occ - URL https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_6_1.zip - URL_MD5 e891d85cad61c5cc7ccba3d0110f0c8c + URL https://github.com/Open-Cascade-SAS/OCCT/archive/refs/tags/V7_7_2.zip + URL_MD5 533eb4f18af0f77ae321b158caeaee79 DOWNLOAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/external_dependencies ${SUBPROJECT_ARGS} CMAKE_ARGS @@ -104,6 +104,7 @@ if(BUILD_OCC) -DBUILD_MODULE_Visualization:BOOL=OFF -DBUILD_MODULE_ApplicationFramework:BOOL=OFF -DBUILD_MODULE_Draw:BOOL=OFF + -DBUILD_MODULE_DETools:BOOL=OFF -DUSE_FREETYPE:BOOL=OFF -DUSE_OPENGL:BOOL=OFF -DUSE_XLIB:BOOL=OFF