From 4b4aef1a0f039b37f90569b5b6ab1683511d5a71 Mon Sep 17 00:00:00 2001 From: Alexander Penev Date: Tue, 22 Aug 2023 14:07:52 +0000 Subject: [PATCH] Fix openmp flags --- CMakeLists.txt | 6 +++++- Dockerfile | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6552a127..5a28cfcd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,9 +25,13 @@ message(STATUS "Building xeus-clang-repl v${${PROJECT_NAME}_VERSION}") set(CMAKE_OMP "") find_package(OpenMP) if (OpenMP_CXX_FOUND) + message(STATUS "OpenMP_CXX_VERSION=${OpenMP_CXX_VERSION}") + message(STATUS "OpenMP_CXX_SPEC_DATE=${OpenMP_CXX_SPEC_DATE}") message(STATUS "OpenMP_CXX_FLAGS=${OpenMP_CXX_FLAGS}") + message(STATUS "OpenMP_CXX_INCLUDE_DIRS=${OpenMP_CXX_INCLUDE_DIRS}") message(STATUS "OpenMP_CXX_LIB_NAMES=${OpenMP_CXX_LIB_NAMES}") - set(omp_libs OpenMP_CXX_LIB_NAMES) + message(STATUS "OpenMP_CXX_LIBRARIES=${OpenMP_CXX_LIBRARIES}") + set(omp_libs "${OpenMP_CXX_LIB_NAMES}") list(TRANSFORM omp_libs PREPEND "-l") list(JOIN omp_libs " " INCLUDE_STRING) message(STATUS "OpenMP_CXX_LIB_NAMES(params)=${omp_libs}") diff --git a/Dockerfile b/Dockerfile index ef3d5d14..cd7132a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN apt-get update --yes && \ unzip \ curl \ jq \ - libomp-dev \ + ###libomp-dev \ # Other "our" apt installs (development and testing) build-essential \ git \