From acad9b033901d70ae5628cc751328c62fe5162d0 Mon Sep 17 00:00:00 2001 From: Duy-Nguyen Ta Date: Mon, 14 Aug 2017 17:23:24 -0400 Subject: [PATCH] disable all warnings while compiling cython generated cpp --- cmake/GtsamCythonWrap.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/GtsamCythonWrap.cmake b/cmake/GtsamCythonWrap.cmake index 363b85cf9..0885fb1d4 100644 --- a/cmake/GtsamCythonWrap.cmake +++ b/cmake/GtsamCythonWrap.cmake @@ -68,7 +68,7 @@ endfunction() # - output_dir: The output directory function(build_cythonized_cpp target cpp_file output_lib_we output_dir) add_library(${target} MODULE ${cpp_file}) - set_target_properties(${target} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup" + set_target_properties(${target} PROPERTIES COMPILE_FLAGS "-w" LINK_FLAGS "-undefined dynamic_lookup" OUTPUT_NAME ${output_lib_we} PREFIX "" LIBRARY_OUTPUT_DIRECTORY ${output_dir}) endfunction()