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

CML: Create header-only target in IDEs #137

Merged
merged 1 commit into from
Oct 5, 2024

Conversation

Flamefire
Copy link
Contributor

Since CMake 3.19 it is possible to specify private sources for INTERFACE targets. This makes the library turn up like compiled libraries in IDEs such as Visual Studio.

It can also be specified in the add_library call but using target_sources is more isolated to the CMake version check

Since CMake 3.19 it is possible to specify private sources for `INTERFACE` targets. This makes the library turn up like compiled libraries in IDEs such as Visual Studio.

It can also be specified in the `add_library` call but using `target_sources` is more isolated to the CMake version check
@typenameTea
Copy link
Contributor

This makes the optional library appear in Visual Studio for me, thanks!

@akrzemi1 akrzemi1 merged commit 76200db into boostorg:develop Oct 5, 2024
50 checks passed
@Flamefire Flamefire deleted the patch-1 branch October 5, 2024 07:59
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.

3 participants