PageRenderTime 47ms CodeModel.GetById 42ms app.highlight 1ms RepoModel.GetById 2ms app.codeStats 0ms

/ext/tinyxml_2_6_1.patch

http://github.com/imageworks/OpenColorIO
Patch | 29 lines | 29 code | 0 blank | 0 comment | 0 complexity | 205826c99b807107d7a315c6dfd489fe MD5 | raw file
 1diff -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,25 @@
 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 -fPIC -fvisibility=hidden")
17+if(OCIO_INLINES_HIDDEN)
18+    set(TINYXML_COMPILE_FLAGS "${TINYXML_COMPILE_FLAGS} -fvisibility-inlines-hidden")
19+endif()
20+
21+set_target_properties(tinyxml PROPERTIES
22+    COMPILE_FLAGS "${TINYXML_COMPILE_FLAGS}")
23+
24+install(TARGETS
25+    tinyxml
26+    DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
27+install(FILES
28+    tinyxml.h tinystr.h
29+    DESTINATION ${CMAKE_INSTALL_PREFIX}/include)