Skip to content

Commit

Permalink
Fix openmp flags
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-penev committed Aug 22, 2023
1 parent 8d9c807 commit 4b4aef1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit 4b4aef1

Please sign in to comment.