]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix Kokkos flags 14203/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 19 Aug 2022 13:29:31 +0000 (09:29 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 19 Aug 2022 13:29:31 +0000 (09:29 -0400)
cmake/modules/FindKOKKOS.cmake

index 7c992628f8df3267bd9b6cde5097d2f9b6b01576..49928cb21ddaac6b7380aa4bc99caa04ed774682 100644 (file)
@@ -42,8 +42,10 @@ ELSE()
       GET_PROPERTY(KOKKOS_INSTALL_INCLUDE_DIR TARGET Kokkos::kokkos PROPERTY INTERFACE_INCLUDE_DIRECTORIES)
       GET_PROPERTY(KOKKOS_EXTRA_LD_FLAGS_FULL TARGET Kokkos::kokkoscore PROPERTY INTERFACE_LINK_OPTIONS)
       STRING(REGEX REPLACE "\\$<\\$<LINK_LANGUAGE:CXX>:([^>]*)>" "\\1" KOKKOS_EXTRA_LD_FLAGS "${KOKKOS_EXTRA_LD_FLAGS_FULL}")
+      STRING(REPLACE ";" " " KOKKOS_EXTRA_LD_FLAGS "${KOKKOS_EXTRA_LD_FLAGS}")
       GET_PROPERTY(KOKKOS_COMPILE_FLAGS_FULL TARGET Kokkos::kokkoscore PROPERTY INTERFACE_COMPILE_OPTIONS)
       STRING(REGEX REPLACE "\\$<\\$<COMPILE_LANGUAGE:CXX>:([^>]*)>" "\\1" KOKKOS_COMPILE_FLAGS "${KOKKOS_COMPILE_FLAGS_FULL}")
+      STRING(REPLACE ";" " " KOKKOS_COMPILE_FLAGS "${KOKKOS_COMPILE_FLAGS}")
 
       # We need to disable SIMD vectorization for CUDA device code.
       # Otherwise, nvcc compilers from version 9 on will emit an error message like:

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.