Skip to content

Commit

Permalink
p3:cmake: fix *FLAGS string quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
mkirilin committed Aug 28, 2023
1 parent 9d11fc9 commit 410fd0a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,16 @@ string(APPEND P4EST_CPP " -E")
set(P4EST_CPP \"${P4EST_CPP}\")

set(P4EST_CFLAGS "${CMAKE_C_FLAGS}\ ${MPI_C_COMPILE_OPTIONS}")
set(P4EST_CFLAGS \"${P4EST_CFLAGS}\")

set(P4EST_CPPFLAGS \"\")

if(P4EST_ENABLE_AVX2)
set(P4EST_CFLAGS \"${P4EST_CFLAGS} -mavx2\")
set(P4EST_CPPFLAGS \"${P4EST_CPPFLAGS} -mavx2\")
set(P4EST_CFLAGS "${P4EST_CFLAGS}\ -mavx2")
set(P4EST_CPPFLAGS "${P4EST_CPPFLAGS}\ -mavx2")
endif()

set(P4EST_CFLAGS \"${P4EST_CFLAGS}\")

set(P4EST_CPPFLAGS \"${P4EST_CPPFLAGS}\")

set(P4EST_FFLAGS "${CMAKE_Fortran_FLAGS}\ ${MPI_Fortran_COMPILE_OPTIONS}")
set(P4EST_FFLAGS \"${P4EST_FFLAGS}\")

Expand Down

0 comments on commit 410fd0a

Please sign in to comment.