Debian Codegraph @

build_qnx/qnx_patches/tinyxml2_qnx.patch

raw
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index ff45bb8..30183a2 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -58,9 +58,14 @@ set_target_properties(tinyxml2 PROPERTIES
6
7
8 if(DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
9 - target_include_directories(tinyxml2 PUBLIC
10 - $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
11 - $<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include>)
12 + if(QNX)
13 + target_include_directories(tinyxml2 PUBLIC
14 + $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>)
15 + else()
16 + target_include_directories(tinyxml2 PUBLIC
17 + $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>
18 + $<INSTALL_INTERFACE:${CMAKE_INSTALL_PREFIX}/include>)
19 + endif()
20
21 if(MSVC)
22 target_compile_definitions(tinyxml2 PUBLIC -D_CRT_SECURE_NO_WARNINGS)