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

Fix find_package_handle_standard_args incorrect argument in GTest finder script #3098

Merged
merged 1 commit into from
May 30, 2019

Conversation

SergioRAgostinho
Copy link
Member

@SergioRAgostinho SergioRAgostinho commented May 24, 2019

  • Fix regression introduced in 32d6cef
  • find_package_handle_standard_args is meant to be invoked with the
    same package name as a preceding call to find_package. Without it,
    it won't be able to tell, if the package is required or optional.

Fixes #2722

* Fix regression introduced in 32d6cef
* find_package_handle_standard_args is meant to be invoked with the
same package name as a preceding call to find_package. Without it,
it won't be able to tell, if the package is required or optional.
@@ -421,12 +421,6 @@ configure_file("${pcl_config_h_in}" "${pcl_config_h}")
PCL_ADD_INCLUDES(common "" "${pcl_config_h}")
include_directories("${CMAKE_CURRENT_BINARY_DIR}/include")

### ---[ Set up for tests
enable_testing()
Copy link
Member Author

Choose a reason for hiding this comment

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

I deleted this because it is alreadly being invoked in the right place

enable_testing()

@SunBlack
Copy link
Contributor

Is this fixing #2722?

@SergioRAgostinho
Copy link
Member Author

Yep. That's exactly the issue. Thanks for making the connection!

@taketwo taketwo merged commit 94a7685 into PointCloudLibrary:master May 30, 2019
@taketwo taketwo changed the title Fix find_package_handle_standard_args incorrect argument Fix find_package_handle_standard_args incorrect argument for GTestSource May 30, 2019
@SergioRAgostinho SergioRAgostinho deleted the gtest branch May 31, 2019 06:43
@taketwo taketwo changed the title Fix find_package_handle_standard_args incorrect argument for GTestSource Fix find_package_handle_standard_args incorrect argument in GTest finder script Jan 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing GoogleTest sources do not disable test projects
3 participants