Merge branch 'fix-pnglibconf-on-osx' of git://github.com/aseprite/libpng into libpng16
This commit is contained in:
commit
f962ee9dc6
@ -22,6 +22,13 @@ set(PNGLIB_MINOR "@PNGLIB_MINOR@")
|
|||||||
set(PNGLIB_VERSION "@PNGLIB_VERSION@")
|
set(PNGLIB_VERSION "@PNGLIB_VERSION@")
|
||||||
set(ZLIBINCDIR "@ZLIB_INCLUDE_DIR@")
|
set(ZLIBINCDIR "@ZLIB_INCLUDE_DIR@")
|
||||||
|
|
||||||
|
set(PLATFORM_C_FLAGS)
|
||||||
|
if(APPLE)
|
||||||
|
set(CMAKE_OSX_ARCHITECTURES "@CMAKE_OSX_ARCHITECTURES@")
|
||||||
|
set(CMAKE_OSX_SYSROOT "@CMAKE_OSX_SYSROOT@")
|
||||||
|
set(PLATFORM_C_FLAGS -arch ${CMAKE_OSX_ARCHITECTURES} -isysroot ${CMAKE_OSX_SYSROOT})
|
||||||
|
endif()
|
||||||
|
|
||||||
get_filename_component(INPUTEXT "${INPUT}" EXT)
|
get_filename_component(INPUTEXT "${INPUT}" EXT)
|
||||||
get_filename_component(OUTPUTEXT "${OUTPUT}" EXT)
|
get_filename_component(OUTPUTEXT "${OUTPUT}" EXT)
|
||||||
get_filename_component(INPUTBASE "${INPUT}" NAME_WE)
|
get_filename_component(INPUTBASE "${INPUT}" NAME_WE)
|
||||||
@ -48,6 +55,7 @@ if ("${INPUTEXT}" STREQUAL ".c" AND "${OUTPUTEXT}" STREQUAL ".out")
|
|||||||
|
|
||||||
execute_process(COMMAND "${CMAKE_C_COMPILER}" "-E"
|
execute_process(COMMAND "${CMAKE_C_COMPILER}" "-E"
|
||||||
${CMAKE_C_FLAGS}
|
${CMAKE_C_FLAGS}
|
||||||
|
${PLATFORM_C_FLAGS}
|
||||||
"-I${SRCDIR}"
|
"-I${SRCDIR}"
|
||||||
"-I${BINDIR}"
|
"-I${BINDIR}"
|
||||||
${INCLUDES}
|
${INCLUDES}
|
||||||
|
Loading…
Reference in New Issue
Block a user