Skip to content

Conversation

@ClausKlein
Copy link
Contributor

No description provided.

Comment on lines +127 to +144
option(LIB_WITH_EIGEN "Enable Eigen" OFF)
if(LIB_WITH_EIGEN)
target_compile_definitions(lib INTERFACE HAS_EIGEN)
endif()

target_link_libraries(main PRIVATE lib)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How to export this option?

Copy link
Owner

Choose a reason for hiding this comment

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

It needs to be passed from the builder of this library. project_options doesn't provide a specific mechanism for this.

@ClausKlein ClausKlein marked this pull request as draft September 4, 2024 22:01
@ClausKlein ClausKlein force-pushed the feature/use-compile-option branch from 6287b4c to b7994c4 Compare April 27, 2025 18:24
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