Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link statically against library "mlrlcommon" #828

Merged
merged 1 commit into from
Apr 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 3 additions & 9 deletions cpp/subprojects/common/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -178,15 +178,9 @@ endif
# Library declaration
common_lib = library(lib_name, source_files, include_directories : include_dir, cpp_args : cpp_args,
link_args : link_args, version : version, install : true, install_dir : install_dir)

if host_machine.system() == 'windows'
# On Windows, we must additionally built a static library to link against, as we cannot add DLL exports for all
# classes that can potentially be used by dependant libraries
common_lib = static_library(lib_name, source_files, include_directories : include_dir, cpp_args : cpp_args,
link_args : link_args)
endif

common_dep = declare_dependency(include_directories : include_dir, link_with : common_lib)
common_static_lib = static_library(lib_name, source_files, include_directories : include_dir, cpp_args : cpp_args,
link_args : link_args)
common_dep = declare_dependency(include_directories : include_dir, link_with : common_static_lib)

# Test declaration
test_support_option = get_option('test_support')
Expand Down
Loading