From 5a8e9a86adc52b23166c4d5e8f29284462025f0d Mon Sep 17 00:00:00 2001 From: Schaich Date: Wed, 24 Mar 2021 21:16:45 +0900 Subject: [PATCH] [Untested] Remove odd looking libpng global link flag expansion If explicit link flag handling is required, it *should* be handled by FindPNG, and we should explicitly bind these kind of things to targets, rather than expanding the global linker flags I have no apple setup and can therefore not test this commit --- CMakeLists.txt | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2440256f..a0291c4a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,16 +85,6 @@ IF(APPLE) ELSE (UNIVERSAL) SET(CMAKE_OSX_SYSROOT "/") ENDIF (UNIVERSAL) - - IF (PNG_FOUND) - INCLUDE_DIRECTORIES( - "${PNG_INCLUDE_DIR}" - ) - SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lpng") - SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lpng") - SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -lpng") - ENDIF (PNG_FOUND) - ENDIF(APPLE) add_subdirectory(backend)