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