[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
This commit is contained in:
Schaich 2021-03-24 21:16:45 +09:00
parent 3f7356e262
commit 5a8e9a86ad

View File

@ -85,16 +85,6 @@ IF(APPLE)
ELSE (UNIVERSAL) ELSE (UNIVERSAL)
SET(CMAKE_OSX_SYSROOT "/") SET(CMAKE_OSX_SYSROOT "/")
ENDIF (UNIVERSAL) 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) ENDIF(APPLE)
add_subdirectory(backend) add_subdirectory(backend)