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

[cmake-template] Simplify test_v1_package CMakeLists.txt #13656

Merged
merged 2 commits into from
Oct 22, 2022

Conversation

uilianries
Copy link
Member

Instead of duplicating, let's re-use from test_package/

  • Don't specify LANGUAGE as it's just a wrapper and it will be filled by test_package/
  • CMake 3.1 is more than enough. Also, test_package/ will have the real required version
  • As test_package/ is not a sub directory, but an external folder, binary dir must be passed

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the conan-center hook activated.

Signed-off-by: Uilian Ries <uilianries@gmail.com>
@uilianries
Copy link
Member Author

uilianries commented Oct 21, 2022 via email

# in case the target project requires a C++ standard
target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../test_package/
${CMAKE_CURRENT_BINARY_DIR}/binaries/)
Copy link
Contributor

@jwillikers jwillikers Oct 21, 2022

Choose a reason for hiding this comment

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

I think it makes more sense to name the binaries directory test_package so that we know what that belongs to in the build directory.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done

@prince-chrismc
Copy link
Contributor

Im in

@conan-center-bot conan-center-bot merged commit b485b94 into conan-io:master Oct 22, 2022
MartinDelille added a commit to MartinDelille/conan-center-index that referenced this pull request Oct 24, 2022
conan-center-bot pushed a commit that referenced this pull request Dec 27, 2022
* [sentry-crashpad/xxx] conan v2 migration

* Apply suggestions from code review

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Apply suggestions from code review

Add CMakeDeps

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Add test_v1_package

* Fix various issues

* Minor fixes

* Apply suggestions from code review

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>

* Use export_conandata_patches

* Move generate after source

* Move layout after validate

* Simpler test_v1_package from #13656

* Add libcurl requirement

* Update to conan 1.53.0

* Revert "Update to conan 1.53.0"

This reverts commit 01ed5d1.

* Restore test_package crashpad_handler call

* Fix linter error in conandata.yml

* Fix cmake_layout path

* Use cmake.configure(build_script_folder="external/crashpad")

* Bump requirements

* Fix handler_bin_path

* Fix handler_exe on Windows

* deps_cpp_info => dependencies

* Dump info to understand what is going wrong on the ci

* Revert "Dump info to understand what is going wrong on the ci"

This reverts commit 708f716.

* Fix test_v1_package

* dependencies => deps_cpp_info

* Add version 0.5.3

* Update recipes/sentry-crashpad/all/conanfile.py

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>

Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
AbrilRBS pushed a commit to AbrilRBS/conan-center-index that referenced this pull request Jan 16, 2023
* [sentry-crashpad/xxx] conan v2 migration

* Apply suggestions from code review

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Apply suggestions from code review

Add CMakeDeps

Co-authored-by: Uilian Ries <uilianries@gmail.com>

* Add test_v1_package

* Fix various issues

* Minor fixes

* Apply suggestions from code review

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>

* Use export_conandata_patches

* Move generate after source

* Move layout after validate

* Simpler test_v1_package from conan-io#13656

* Add libcurl requirement

* Update to conan 1.53.0

* Revert "Update to conan 1.53.0"

This reverts commit 01ed5d1.

* Restore test_package crashpad_handler call

* Fix linter error in conandata.yml

* Fix cmake_layout path

* Use cmake.configure(build_script_folder="external/crashpad")

* Bump requirements

* Fix handler_bin_path

* Fix handler_exe on Windows

* deps_cpp_info => dependencies

* Dump info to understand what is going wrong on the ci

* Revert "Dump info to understand what is going wrong on the ci"

This reverts commit 708f716.

* Fix test_v1_package

* dependencies => deps_cpp_info

* Add version 0.5.3

* Update recipes/sentry-crashpad/all/conanfile.py

Co-authored-by: Chris Mc <prince.chrismc@gmail.com>

Co-authored-by: Uilian Ries <uilianries@gmail.com>
Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
Co-authored-by: Chris Mc <prince.chrismc@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants