mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-04-18 23:21:41 +00:00
Change default for KICAD_USE_CMAKE_FINDPROTOBUF
This commit is contained in:
parent
e6eff2ce27
commit
6122fca858
@ -165,15 +165,9 @@ cmake_dependent_option( KICAD_APPLE_MAKE_RELOCATEABLE_BUNDLE
|
||||
"On macOS, post-process the build to make it relocateable (default ON)"
|
||||
ON "APPLE" OFF )
|
||||
|
||||
# CMake's FindProtobuf module doesn't work correctly on MacOS or Windows but is
|
||||
# required for Linux
|
||||
if( UNIX_NOT_APPLE )
|
||||
set( KICAD_CMAKE_PROTOBUF_DEFAULT ON )
|
||||
else()
|
||||
set( KICAD_CMAKE_PROTOBUF_DEFAULT OFF )
|
||||
endif()
|
||||
|
||||
option( KICAD_USE_CMAKE_FINDPROTOBUF "Use FindProtobuf provided by CMake" ${KICAD_CMAKE_PROTOBUF_DEFAULT} )
|
||||
# Old versions of CMake and/or protobuf can require the FindProtobuf.cmake,
|
||||
# but modern platforms require this to be off
|
||||
option( KICAD_USE_CMAKE_FINDPROTOBUF "Use FindProtobuf provided by CMake" OFF )
|
||||
mark_as_advanced( KICAD_USE_CMAKE_FINDPROTOBUF )
|
||||
|
||||
####################################
|
||||
|
Loading…
Reference in New Issue
Block a user