Skip to content

Commit 0cd565a

Browse files
committed
The proposed mechanism to data pugixml does not work under Windows.
1 parent e052860 commit 0cd565a

File tree

5 files changed

+8
-45
lines changed

5 files changed

+8
-45
lines changed

3rdparty/pugixml/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ SET(PUGIXML_SRCS
77
ADD_LIBRARY(pugixml SHARED ${PUGIXML_SRCS})
88

99
TARGET_INCLUDE_DIRECTORIES(pugixml PUBLIC
10-
$<BUILD_INTERFACE:${OPENMA_BINARY_DIR}/include>
11-
$<BUILD_INTERFACE:${OPENMA_SOURCE_DIR}/3rdparty/pugixml/include>
10+
$<BUILD_INTERFACE:${OPENMA_BINARY_DIR}/3rdparty/pugixml>
11+
$<BUILD_INTERFACE:${OPENMA_SOURCE_DIR}/3rdparty/pugixml/src>
1212
)
1313

1414
GENERATE_EXPORT_HEADER(pugixml

3rdparty/pugixml/README.OPENMA

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
The folder 'include' is an addition to simplify the inclusion of PugiXML in OpenMA.
1+
In case the library pugixml is updated, it is important to patch the file src/pugiconfig.hpp around the line 17 with the following code:
2+
3+
#include "pugixml_export.h"

3rdparty/pugixml/include/pugixml/pugixml.h

-41
This file was deleted.

3rdparty/pugixml/src/pugiconfig.hpp

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
#ifndef HEADER_PUGICONFIG_HPP
1515
#define HEADER_PUGICONFIG_HPP
1616

17+
#include "pugixml_export.h"
18+
1719
// Uncomment this to enable wchar_t mode
1820
// #define PUGIXML_WCHAR_MODE
1921

modules/io/plugins/trialformats/hpf/hpfhandler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
#include <cmath>
5353

5454

55-
#include <pugixml/pugixml.h>
55+
#include <pugixml.hpp>
5656

5757
// -------------------------------------------------------------------------- //
5858
// PRIVATE API //

0 commit comments

Comments
 (0)