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

[symengine] conan v2 support #14872

Merged
merged 12 commits into from
Jan 28, 2023

Conversation

cqc-alec
Copy link
Contributor

@cqc-alec cqc-alec commented Dec 21, 2022

Specify library name and version: symengine/0.9.0


@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@github-actions
Copy link
Contributor

Hooks produced the following warnings for commit cbbb24e
symengine/0.8.1
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libsymengine.so' links to system library 'm' but it is not in cpp_info.system_libs.
symengine/0.9.0
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library './lib/libsymengine.so' links to system library 'm' but it is not in cpp_info.system_libs.

@cqc-alec cqc-alec marked this pull request as ready for review December 22, 2022 15:24
@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@cqc-alec cqc-alec requested a review from uilianries January 3, 2023 10:01
@conan-center-bot

This comment has been minimized.

@cqc-alec
Copy link
Contributor Author

@uilianries are any more changes needed here?

Copy link
Contributor

@prince-chrismc prince-chrismc left a 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

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 13 (1f66bc8c4a5675bd8a0b3724bbf378d2add355b6):

  • symengine/0.8.1@:
    All packages built successfully! (All logs)

  • symengine/0.9.0@:
    All packages built successfully! (All logs)

@cqc-alec cqc-alec requested review from prince-chrismc and removed request for uilianries January 27, 2023 11:03
Copy link
Member

@uilianries uilianries left a 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"
Copy link
Member

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`
Copy link
Member

@uilianries uilianries Jan 27, 2023

Choose a reason for hiding this comment

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

FIXME: Replace symengine::symengine with symengine

It would need a new module in the recipe, but no problem skipping it for now.

@conan-center-bot conan-center-bot merged commit 33a2901 into conan-io:master Jan 28, 2023
StellaSmith pushed a commit to StellaSmith/conan-center-index that referenced this pull request Feb 2, 2023
* [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.
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.

4 participants