Skip to content

Feature/add windows ci#53

Open
ClausKlein wants to merge 18 commits intobemanproject:mainfrom
ClausKlein:feature/add-windows-ci
Open

Feature/add windows ci#53
ClausKlein wants to merge 18 commits intobemanproject:mainfrom
ClausKlein:feature/add-windows-ci

Conversation

@ClausKlein
Copy link
Contributor

@ClausKlein ClausKlein commented Jan 14, 2026

This offers a portable implementation version that compiles on all OS with all C++23 compilers

NOTE: This version compiles on OSX with apple-clang, llvm-clang, and g++-15 too!

I have been prepared export headers to test with DLL's on Windows too.

see https://discourse.cmake.org/t/linker-error-with-cxx-modules/15449

scope_exit does not need to be move-assignable!
add get_version() to CXX_MODULE to export some code;
@ClausKlein ClausKlein force-pushed the feature/add-windows-ci branch from 350bcd8 to 1a86a99 Compare January 15, 2026 21:05
@ClausKlein ClausKlein force-pushed the feature/add-windows-ci branch from 79cd72c to f51bfa4 Compare January 16, 2026 23:09
Prevent warning: placeholder variables are a C++2c extension
@ClausKlein ClausKlein force-pushed the feature/add-windows-ci branch from 26120f1 to 7af734d Compare January 17, 2026 18:52

set(package_install_dir ${CMAKE_INSTALL_LIBDIR}/cmake/beman.scope)

# TBD: always? CK
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ednolan why not check BEMAN_SCOPE_INSTALL_CONFIG_FILE_PACKAGE here?

@ClausKlein ClausKlein self-assigned this Jan 27, 2026
Comment on lines +60 to +72

include(GenerateExportHeader)

generate_export_header(
beman.scope
BASE_NAME beman.scope
EXPORT_FILE_NAME beman/scope/modules_export.hpp
)
else()
add_library(beman.scope INTERFACE)
endif()

if(CMAKE_CXX_SCAN_FOR_MODULES)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JeffGarland For windows DLL we need an export header too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants