Skip to content

Commit d3a691b

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

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

meson.build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ tmp = library(
2323
tmp_dep = declare_dependency(
2424
link_with: tmp,
2525
include_directories: include_directory,
26+
gnu_symbol_visibility: 'default',
2627
dependencies: [filesystem_dep],
2728
version: meson.project_version(),
2829
)

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)