-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[symengine] conan v2 support #14872
[symengine] conan v2 support #14872
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hooks produced the following warnings for commit cbbb24esymengine/0.8.1
symengine/0.9.0
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@uilianries are any more changes needed here? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One tiny comment but this looks super good
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
||
def generate(self): | ||
tc = CMakeToolchain(self) | ||
tc.variables["CMAKE_CXX_STANDARD"] = "11" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Usually we set it directly in the cmake file with target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_11)
But no problem using here instead.
find_package(symengine REQUIRED CONFIG) | ||
|
||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE symengine::symengine) # FIXME: Replace `symengine::symengine` with `symengine` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIXME: Replace
symengine::symengine
withsymengine
It would need a new module in the recipe, but no problem skipping it for now.
* [symengine] conan v2 support * Remove unused import. * Relax conan version requirement. * Restore old `test_package` directory renamed to `test_v1_package`. * Remove files unwanted for packaging. * Search for files recursively. * Restore line accidentally missed out. * Specify C++11 in test package. * Add "m" to system libs on Linux. * Use latest boost version. * Format with black. * Set CMAKE_CXX_STANDARD using CMakeToolChain.
Specify library name and version: symengine/0.9.0