Skip to content

Commit 02d26a9

Browse files
committed
Mock out OSMIUM_EXPORT macro for header checks
1 parent 5d50405 commit 02d26a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ if(BUILD_HEADERS)
408408
# Create a dummy .cpp file that includes the header file we want to
409409
# check.
410410
set(DUMMYCPP ${CMAKE_BINARY_DIR}/header_check/${libname}.cpp)
411-
file(WRITE ${DUMMYCPP} "#define OSMIUM_UTIL_COMPATIBILITY_HPP\n#define OSMIUM_DEPRECATED\n#include <${hpp}> // IWYU pragma: keep\n")
411+
file(WRITE ${DUMMYCPP} "#define OSMIUM_UTIL_COMPATIBILITY_HPP\n#define OSMIUM_DEPRECATED\n#define OSMIUM_EXPORT\n#include <${hpp}> // IWYU pragma: keep\n")
412412

413413
# There is no way in CMake to just compile but not link a C++ file,
414414
# so we pretend to build a library here.

0 commit comments

Comments
 (0)