https://stackoverflow.com/questions/44284275/passing-compiler-options-in-cmake-command-line
Command line options like CMAKE_C_FLAGS and CMAKE_CXX_FLAGS always append and never overwrite.
-DCMAKE_C_FLAGS
-DCMAKE_CXX_FLAGS="-Wno-dev -Wl,-rpath=/home/abcd/libs/"
-DCMAKE_CXX_FLAGS=-Wno-error=incompatible-function-pointer-types
-Wno-error=incompatible-function-pointer-types
-Wno-incompatible-function-pointer-types
标签:function,cli,incompatible,Wno,add,FLAGS,pointer,types,option
From: https://www.cnblogs.com/Searchor/p/17396953.html