Skip to content

Conversation

@tikuma-lsuhsc
Copy link

When you include this cmake project as a "subproject" of another project, CMake complains in Windows (MSVC) that it cannot find M_PI because -D_USE_MATH_DEFINES is not defined. (Actually it does something really funky if I add #define _USE_MATH_DEFINES to the source files. The compiler complains that _USE_MATH_DEFINES has already been defined despite it's not.)

Anyway, this PR fixes this issue by using per-project target_compile_definitions cmake command instead of add_definition.

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.

1 participant