diff --git a/app/src/main/cpp/CMakeLists.txt b/app/src/main/cpp/CMakeLists.txt index 362abfe1f..615210b64 100644 --- a/app/src/main/cpp/CMakeLists.txt +++ b/app/src/main/cpp/CMakeLists.txt @@ -4,17 +4,17 @@ include(ExternalProject) include(FetchContent) if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast -fvisibility=hidden -fvisibility-inlines-hidden -funroll-loops -flto \ - -mllvm -polly \ - -mllvm -polly-run-dce \ - -mllvm -polly-run-inliner \ - -mllvm -polly-isl-arg=--no-schedule-serialize-sccs \ - -mllvm -polly-ast-use-context \ - -mllvm -polly-detect-keep-going \ - -mllvm -polly-position=before-vectorizer \ - -mllvm -polly-vectorizer=stripmine \ - -mllvm -polly-detect-profitability-min-per-loop-insts=40 \ - -mllvm -polly-invariant-load-hoisting") + string(CONCAT CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Ofast -fvisibility=hidden -fvisibility-inlines-hidden -funroll-loops -flto " + "-mllvm -polly " + "-mllvm -polly-run-dce " + "-mllvm -polly-run-inliner " + "-mllvm -polly-isl-arg=--no-schedule-serialize-sccs " + "-mllvm -polly-ast-use-context " + "-mllvm -polly-detect-keep-going " + "-mllvm -polly-position=before-vectorizer " + "-mllvm -polly-vectorizer=stripmine " + "-mllvm -polly-detect-profitability-min-per-loop-insts=40 " + "-mllvm -polly-invariant-load-hoisting") endif (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") option(BUILD_TESTING OFF)