From 6a8bbb548f263846cb3817177f82915026bd3dcd Mon Sep 17 00:00:00 2001 From: Incardona Pietro <incardon@mpi-cbg.de> Date: Wed, 29 Dec 2021 01:20:58 +0100 Subject: [PATCH] Fixing OpenMP flags fowarding --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19d27e519..8b9bc5364 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -200,7 +200,8 @@ if (OPENMP_FOUND) else() file(WRITE openmp_flags "${OpenMP_CXX_FLAGS}") endif() - file(WRITE openmp_libs ${OpenMP_CXX_LIBRARIES}) + string(REPLACE ";" " " OpenMP_CXX_LIBRARIES_LIB "${OpenMP_CXX_LIBRARIES}") + file(WRITE openmp_libs ${OpenMP_CXX_LIBRARIES_LIB}) endif() if(ENABLE_GPU AND CUDA_FOUND) -- GitLab