]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake/modules: replace ";" with " " in compile flags
authorKefu Chai <kchai@redhat.com>
Fri, 31 May 2019 08:17:48 +0000 (16:17 +0800)
committerKefu Chai <kchai@redhat.com>
Fri, 31 May 2019 08:19:08 +0000 (16:19 +0800)
commit714fbf64aedfe0e0b821155e32f07575d53c078c
tree7e5266dda3d0a444ff9bffae27c48702e6271a64
parentef8ea3a61c4707544bd04e74ecd65171d125889f
cmake/modules: replace ";" with " " in compile flags

as the flags should be a string, not a list

tested using

cmake -DCMAKE_LINKER=gold -DWITH_ASAN=ON -DWITH_ASAN_LEAK=ON \
-DCMAKE_BUILD_TYPE=Debug

on ubuntu xenial

without this change, cmake will fail with following warning:

CMake Error at src/CMakeLists.txt:112 (message):
  The compiler /usr/bin/c++ has no C++17 support.

-- Configuring incomplete, errors occurred!

Signed-off-by: Kefu Chai <kchai@redhat.com>
cmake/modules/FindSanitizers.cmake