Skip to content

Commit bc7f4db

Browse files
committed
Fix Windows build
1 parent 96eb3e9 commit bc7f4db

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ tmp = library(
1616
'src/directory.cpp',
1717
install: true,
1818
include_directories: include_directory,
19+
gnu_symbol_visibility: 'default',
1920
version: meson.project_version(),
2021
dependencies: [filesystem_dep],
2122
)

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ target_link_libraries(${PROJECT_NAME} PUBLIC std::filesystem)
77
set_target_properties(${PROJECT_NAME}
88
PROPERTIES EXPORT_NAME ${PROJECT_NAME}
99
CXX_EXTENSIONS OFF
10+
CXX_VISIBILITY_PRESET default
1011
VISIBILITY_INLINES_HIDDEN ON
12+
WINDOWS_EXPORT_ALL_SYMBOLS ON
1113
VERSION ${PROJECT_VERSION}
1214
SOVERSION ${PROJECT_VERSION_MAJOR})
1315

0 commit comments

Comments
 (0)