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
parent
ac1e516037
commit
4ebe9ec2dc
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue