Skip to content

Commit

Permalink
External: RawSpeed: CMake: check cameras.xml validity. Test fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
LebedevRI committed Feb 27, 2016
1 parent 2909787 commit 079de91
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/external/rawspeed/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
cmake_minimum_required(VERSION 2.6)

if(USE_XMLLINT)
execute_process(
COMMAND ${Xmllint_BIN} --valid ${CMAKE_CURRENT_SOURCE_DIR}/data/cameras.xml
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/
OUTPUT_QUIET ERROR_QUIET
RESULT_VARIABLE Xmllint_RES
)
if(NOT ${Xmllint_RES} EQUAL 0 )
# should be FATAL_ERROR, but currently fails => no reason to just break build.
message(WARNING "external/rawspeed/data/cameras.xml is not valid")
endif(NOT ${Xmllint_RES} EQUAL 0 )
endif(USE_XMLLINT)

install(FILES data/cameras.xml data/showcameras.xsl DESTINATION ${SHARE_INSTALL}/darktable/rawspeed)

FILE(GLOB RAWSPEED_SOURCES "RawSpeed/*.cpp")
Expand Down

0 comments on commit 079de91

Please sign in to comment.