Skip to content

Commit

Permalink
cmake: use global OPENMP option for libraw as well (darktable-org#10472)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos authored Nov 25, 2021
1 parent d756d32 commit 27ab43a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 27ab43a

Please sign in to comment.