]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: use add_compile_options() to pass compile options
authorKefu Chai <kchai@redhat.com>
Mon, 19 Jul 2021 04:44:38 +0000 (12:44 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Jul 2021 06:43:08 +0000 (14:43 +0800)
commite33dfa7557284a9788b4e4ac4fe2eb787a6aef10
treeb367cc62b36cd35f4bff4127bfb9d66a0f85d713
parentf2f7dfbdab01eb14ca64e39fd3b2e63c46852293
cmake: use add_compile_options() to pass compile options

add_definitions() is for adding "-D" define flags, while "-include" does
not define flags, so let's be explicit and use add_compile_options()
instead.

this change partially reverts 5fb90bb79671b8e22f507728e4b4b948a591f98f.
back then, we were using ubuntu bionic for building windows packages.
but since we've switched to ubuntu focal, where cmake 3.16 is available,
there is no reason to stick with add_definitions() anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt