mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
[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:
parent
3f7356e262
commit
5a8e9a86ad
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user