diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ab735d83d..fca2bb83fb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -714,10 +714,9 @@ if(PNG_SHARED) set_target_properties(png_shared PROPERTIES DEFINE_SYMBOL PNG_BUILD_DLL) endif() target_include_directories(png_shared - PUBLIC - $ - $ - PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + PUBLIC $) + target_include_directories(png_shared SYSTEM + INTERFACE $) target_link_libraries(png_shared PUBLIC ZLIB::ZLIB ${M_LIBRARY}) endif() @@ -729,10 +728,9 @@ if(PNG_STATIC) OUTPUT_NAME "${PNG_STATIC_OUTPUT_NAME}" DEBUG_POSTFIX "${PNG_DEBUG_POSTFIX}") target_include_directories(png_static - PUBLIC - $ - $ - PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + PUBLIC $) + target_include_directories(png_static SYSTEM + INTERFACE $) target_link_libraries(png_static PUBLIC ZLIB::ZLIB ${M_LIBRARY}) endif() @@ -759,10 +757,9 @@ if(PNG_FRAMEWORK) # Avoid CMake's implicit compile definition "-Dpng_framework_EXPORTS". set_target_properties(png_framework PROPERTIES DEFINE_SYMBOL "") target_include_directories(png_framework - PUBLIC - $ - $ - PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) + PUBLIC $) + target_include_directories(png_framework SYSTEM + INTERFACE $) target_link_libraries(png_framework PUBLIC ZLIB::ZLIB ${M_LIBRARY}) endif() diff --git a/scripts/cmake/AUTHORS.md b/scripts/cmake/AUTHORS.md index bffdba60cd..fe423fe778 100644 --- a/scripts/cmake/AUTHORS.md +++ b/scripts/cmake/AUTHORS.md @@ -7,6 +7,7 @@ Author List * Alex Gaynor * Andreas Franek * B. Scott Michel + * Benjamin Buch * Cameron Cawley * Christian Ehrlicher * Christopher Sean Morrison