From 27ab43af53312c61c2b763695f53c0513a72d7d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milo=C5=A1=20Komar=C4=8Devi=C4=87?= <4973094+kmilos@users.noreply.github.com> Date: Thu, 25 Nov 2021 11:09:38 +0100 Subject: [PATCH] cmake: use global OPENMP option for libraw as well (#10472) --- src/CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c7c0a168f96f..7c1155d309f0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -277,10 +277,6 @@ if(USE_OPENMP) endif() list(APPEND LIBS ${OpenMP_C_LIBRARIES} ${OpenMP_CXX_LIBRARIES}) - - if(WIN32) - list(APPEND LIBS gomp) - endif(WIN32) endif(USE_OPENMP) if(USE_DARKTABLE_PROFILING) @@ -1042,7 +1038,9 @@ set(CPACK_COMPONENTS_ALL DTApplication DTDebugSymbols DTDocuments) if (USE_LIBRAW) set(LIBRAW_PATH "${CMAKE_CURRENT_SOURCE_DIR}/external/LibRaw" CACHE STRING "Relative path to libraw directory (default=CMAKE_CURRENT_SOURCE_DIR)") - set(ENABLE_EXAMPLES OFF CACHE BOOL "") + if(NOT USE_OPENMP) + set(ENABLE_OPENMP OFF CACHE BOOL "") + endif() set(DT_SUPPORTED_EXTENSIONS ${DT_SUPPORTED_EXTENSIONS} libraw CACHE INTERNAL "") # LibRaw sub-module