3rdParty: avoid warnings from libE57Format (#21818)

* 3rdParty: avoid warnings from libE57Format

* Suppress all warnings from libE57Format

* Fix typo in original file
This commit is contained in:
Furgo
2025-06-16 17:39:12 +02:00
committed by GitHub
parent b88cbac4f5
commit d166d2a5e8
2 changed files with 8 additions and 3 deletions

View File

@@ -98,7 +98,7 @@ option( E57_WRITE_CRAZY_PACKET_MODE "Compile library to enable reader-stressing
#########################################################################################
set( revision_id "${PROJECT_NAME}-${PROJECT_VERSION}-${${PROJECT_NAME}_BUILD_TAG}" )
message( STATUS "[E57] Revison ID: ${revision_id}" )
message( STATUS "[E57] Revision ID: ${revision_id}" )
# Need to explicitly set the source files to add_library()
if(${CMAKE_VERSION} VERSION_LESS "3.11.0")
@@ -171,6 +171,12 @@ if ( WIN32 )
endif()
endif()
# Suppress all warnings for this specific 3rd-party target
target_compile_options(E57Format PRIVATE
$<$<CXX_COMPILER_ID:GNU,Clang>:-w>
$<$<CXX_COMPILER_ID:MSVC>:/w>
)
# Target Libraries
target_link_libraries( E57Format PRIVATE XercesC::XercesC )

View File

@@ -22,8 +22,7 @@ target_sources( ${PROJECT_NAME}
#)
target_include_directories( ${PROJECT_NAME}
PUBLIC
SYSTEM PUBLIC
$<INSTALL_INTERFACE:include/E57Format>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
)