mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-23 04:22:34 +00:00
b95dbaf914
types.h was being picked up from webp rather than locally due to the `include_directories` call for GTK (and therefore its -I arguments) coming before the same call for the local sources. webp can be pulled in via GTK -> gdk-pixbuf -> tiff -> webp. This can be avoided by specifying `SYSTEM` or `BEFORE` as appropriate when calling `include_directories`. I have done both for good measure.
9 lines
349 B
CMake
9 lines
349 B
CMake
cmake_minimum_required( VERSION 3.1.0 )
|
|
|
|
if( NOT CMAKE_CROSSCOMPILING )
|
|
include_directories( SYSTEM "${ZLIB_INCLUDE_DIR}" "${BZIP2_INCLUDE_DIR}" "${LZMA_INCLUDE_DIR}" )
|
|
add_executable( zipdir
|
|
zipdir.c )
|
|
target_link_libraries( zipdir ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} lzma )
|
|
set( CROSS_EXPORTS ${CROSS_EXPORTS} zipdir PARENT_SCOPE )
|
|
endif()
|