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:
8
src/3rdParty/libE57Format/CMakeLists.txt
vendored
8
src/3rdParty/libE57Format/CMakeLists.txt
vendored
@@ -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 )
|
||||
|
||||
|
||||
@@ -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}>
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user