diff --git a/src/3rdParty/libE57Format/CMakeLists.txt b/src/3rdParty/libE57Format/CMakeLists.txt index e5b17813ac..0e7678c244 100644 --- a/src/3rdParty/libE57Format/CMakeLists.txt +++ b/src/3rdParty/libE57Format/CMakeLists.txt @@ -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 + $<$:-w> + $<$:/w> +) + # Target Libraries target_link_libraries( E57Format PRIVATE XercesC::XercesC ) diff --git a/src/3rdParty/libE57Format/include/CMakeLists.txt b/src/3rdParty/libE57Format/include/CMakeLists.txt index 3fafb3ca42..b637ddb098 100644 --- a/src/3rdParty/libE57Format/include/CMakeLists.txt +++ b/src/3rdParty/libE57Format/include/CMakeLists.txt @@ -22,8 +22,7 @@ target_sources( ${PROJECT_NAME} #) target_include_directories( ${PROJECT_NAME} - PUBLIC + SYSTEM PUBLIC $ $ ) -