mirror of
https://git.code.sf.net/p/zint/code
synced 2025-12-17 18:07:02 +00: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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user