File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1
1
include (GenerateExportHeader)
2
2
function (GENERATE_MANTID_EXPORT_HEADER TARGET_LIBRARY GENERATE_EXTERN)
3
3
string (TOUPPER "${TARGET_LIBRARY} " TARGET_NAME)
4
- set (CUSTOM "\n " )
5
-
6
4
set (CUSTOM
7
- "${CUSTOM} \
8
- #ifndef UNUSED_ARG\n\
9
- #define UNUSED_ARG(x) (void) x;\n\
10
- #endif\n\n\
5
+ "\n\
11
6
#ifndef ${TARGET_NAME} _DEPRECATED\n\
12
7
#define ${TARGET_NAME} _DEPRECATED(func) MANTID_${TARGET_NAME} _DEPRECATED func\n\
13
- #endif\n\n\
14
- "
8
+ #endif\n\n "
15
9
)
16
10
17
11
if (GENERATE_EXTERN)
@@ -26,9 +20,18 @@ function(GENERATE_MANTID_EXPORT_HEADER TARGET_LIBRARY GENERATE_EXTERN)
26
20
// EXTERN_IMPORT is defined in MantidKernel/System.h\n
27
21
#define EXTERN_MANTID_${TARGET_NAME} EXTERN_IMPORT\n\
28
22
#endif /* ${TARGET_LIBRARY} _EXPORTS*/\n\n\
29
- #include <cstdint>
30
23
"
31
24
)
25
+ else ()
26
+ # UNUSED_ARG is defined and cstdint is included in MantidKernel/System.h
27
+ set (CUSTOM
28
+ "${CUSTOM} \
29
+ #ifndef UNUSED_ARG\n\
30
+ #define UNUSED_ARG(x) (void) x;\n\
31
+ #endif\n\n\
32
+ #include <cstdint>\n "
33
+ )
34
+
32
35
endif (GENERATE_EXTERN)
33
36
34
37
generate_export_header(
You can’t perform that action at this time.
0 commit comments