build_environment: opencolorio 1.1.0
[blender.git] / build_files / build_environment / patches / tinyxml.diff
1 diff -Naur tinyxml.orig/CMakeLists.txt tinyxml/CMakeLists.txt
2 --- tinyxml.orig/CMakeLists.txt 1969-12-31 16:00:00.000000000 -0800
3 +++ tinyxml/CMakeLists.txt      2013-06-18 17:10:59.000000000 -0700
4 @@ -0,0 +1,30 @@
5 +project(tinyxml)
6 +
7 +cmake_minimum_required(VERSION 2.8)
8 +
9 +add_library(tinyxml
10 +    STATIC
11 +    tinystr.cpp
12 +    tinyxml.cpp
13 +    tinyxmlerror.cpp
14 +    tinyxmlparser.cpp)
15 +
16 +set(TINYXML_COMPILE_FLAGS "-DTIXML_USE_STL")
17 +
18 +if(UNIX)
19 +    set(TINYXML_COMPILE_FLAGS "${TINYXML_COMPILE_FLAGS} -fPIC -fvisibility=hidden")
20 +endif()
21 +
22 +if(OCIO_INLINES_HIDDEN AND UNIX)
23 +    set(TINYXML_COMPILE_FLAGS "${TINYXML_COMPILE_FLAGS} -fvisibility-inlines-hidden")
24 +endif()
25 +
26 +set_target_properties(tinyxml PROPERTIES
27 +    COMPILE_FLAGS "${TINYXML_COMPILE_FLAGS}")
28 +
29 +install(TARGETS
30 +    tinyxml
31 +    DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
32 +install(FILES
33 +    tinyxml.h tinystr.h
34 +    DESTINATION ${CMAKE_INSTALL_PREFIX}/include)