From 4ebe9ec2dc2c5ca93082b39b7954a503504ce15f Mon Sep 17 00:00:00 2001 From: Ignacio Vizzo Date: Wed, 25 Oct 2017 19:15:35 -0300 Subject: [PATCH] Fix win32 build error for 3rdparty/ccolamd module Supposing there is a typo in this line: \# make sure that ccolamd compiles even in face of warnings if(WIN32) set_source_files_properties(${3rdparty_srcs} PROPERTIES COMPILE_FLAGS "/w") This will add "/w" to the compiler line, and on windows(gcc 6.3.0) this will produce a build error: "gcc.exe: error: W:/: No such file or directory" This change was introduced in gtsam with this commit: commit 7e2e0aaa6d1040ac7f0183796a117d0a3eba9c20 Author: Frank Date: Tue Mar 1 15:41:28 2016 -0800 Appended flags instead of overwriting --- gtsam/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtsam/CMakeLists.txt b/gtsam/CMakeLists.txt index bceca6bcd..859f61513 100644 --- a/gtsam/CMakeLists.txt +++ b/gtsam/CMakeLists.txt @@ -137,7 +137,7 @@ endif() # make sure that ccolamd compiles even in face of warnings if(WIN32) - set_source_files_properties(${3rdparty_srcs} PROPERTIES COMPILE_FLAGS "/w") + set_source_files_properties(${3rdparty_srcs} PROPERTIES COMPILE_FLAGS "-w") else() set_source_files_properties(${3rdparty_srcs} PROPERTIES COMPILE_FLAGS "-Wno-error") endif()