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 7e2e0aaa6d
  Author: Frank <frank@skyd.io>
  Date:   Tue Mar 1 15:41:28 2016 -0800

   Appended flags instead of overwriting
release/4.3a0
Ignacio Vizzo 2017-10-25 19:15:35 -03:00
parent ac1e516037
commit 4ebe9ec2dc
1 changed files with 1 additions and 1 deletions

View File

@ -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()