Fix a link issue with pcbnew_wrap.cxx (MSYS + Windows 64 bits specific)
For some reason the .cxx file generated by SWIG cannot be linked if compiled with debug options. It creates a *lot* of not found symbols. So compile it with release mode (MSYS only)
This commit is contained in:
parent
60719b66bb
commit
b63c482347
|
@ -400,7 +400,13 @@ if( KICAD_SCRIPTING )
|
|||
|
||||
# Disable all warnings for the SWIG file
|
||||
if( CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
|
||||
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-Wno-everything" )
|
||||
if( MSYS )
|
||||
# For some reason the .cxx file generated by SWIG cannot be linked if compiled with debug options:
|
||||
# it creates a *lot* of not found symbols. So compile it with release mode
|
||||
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-O2 -Wno-everything" )
|
||||
else()
|
||||
set_source_files_properties( pcbnew_wrap.cxx PROPERTIES COMPILE_FLAGS "-Wno-everything" )
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set( PCBNEW_SCRIPTING_SRCS
|
||||
|
|
Loading…
Reference in New Issue