mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Suppress warnings in MSVC/gcc
This commit is contained in:
parent
42ed78cf69
commit
53f8ccef22
@ -926,11 +926,6 @@ set( PCB_COMMON_SRCS
|
||||
${CMAKE_SOURCE_DIR}/pcbnew/api/api_pcb_utils.cpp
|
||||
)
|
||||
|
||||
# add -DPCBNEW to compilation of these PCBNEW sources
|
||||
set_source_files_properties( ${PCB_COMMON_SRCS} PROPERTIES
|
||||
COMPILE_DEFINITIONS "PCBNEW"
|
||||
)
|
||||
|
||||
add_library( pcbcommon STATIC ${PCB_COMMON_SRCS} )
|
||||
|
||||
target_precompile_headers( pcbcommon
|
||||
@ -945,6 +940,8 @@ target_precompile_headers( pcbcommon
|
||||
<connectivity/connectivity_data.h>
|
||||
<drc/drc_engine.h> )
|
||||
|
||||
target_compile_definitions(pcbcommon PRIVATE PCBNEW)
|
||||
|
||||
target_include_directories( pcbcommon PRIVATE
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user