CMakeLists.txt 987 Bytes
Newer Older
1 2
SET(PREFIX_ext_expat "${EXTPREFIX}" )

3
if (WIN32)
4 5
ExternalProject_Add( ext_expat
	DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
6 7
	URL http://files.kde.org/krita/build/dependencies/expat-2.1.0.tar.gz
	URL_MD5 dd7dab7a5fea97d2a6a43f511449b7cd
8 9 10 11 12 13 14 15 16 17 18 19 20

	PATCH_COMMAND ${PATCH_COMMAND} -p1 -i ${CMAKE_CURRENT_SOURCE_DIR}/expat-2.1.0-20130311.diff
	INSTALL_DIR ${PREFIX_ext_expat}
	CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${PREFIX_ext_expat} -DBUILD_tests=OFF -DBUILD_examples=OFF -DBUILD_tools=OFF -DCMAKE_BUILD_TYPE=${GLOBAL_BUILD_TYPE} ${GLOBAL_PROFILE}
	UPDATE_COMMAND ""

	DEPENDS ext_patch
)

else()

ExternalProject_Add( ext_expat
	DOWNLOAD_DIR ${EXTERNALS_DOWNLOAD_DIR}
21 22
	URL http://files.kde.org/krita/build/dependencies/expat-2.1.0.tar.gz
	URL_MD5 dd7dab7a5fea97d2a6a43f511449b7cd
23 24 25 26 27 28 29 30 31 32 33

	INSTALL_DIR ${PREFIX_ext_expat}
    CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=${PREFIX_ext_expat}  ${GLOBAL_AUTOMAKE_PROFILE}
    BUILD_COMMAND make
    INSTALL_COMMAND make install

	UPDATE_COMMAND ""

)

endif()