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

[cgal] ctest does not recognise tests when cgal lib included #42303

Open
JeffreyWardman opened this issue Nov 22, 2024 · 1 comment
Open

[cgal] ctest does not recognise tests when cgal lib included #42303

JeffreyWardman opened this issue Nov 22, 2024 · 1 comment
Assignees
Labels
requires:repro The issue is not currently repro-able

Comments

@JeffreyWardman
Copy link

To Reproduce
Using cmake-init template with and without:

find_package(CGAL CONFIG REQUIRED)
target_link_libraries(main PRIVATE CGAL::CGAL)

Running cd target/build && ctest --output-on-failure -j16 && cd ../.. says no tests are found if a simple main is added which includes cgal in any way.

@WangWeiLin-MV WangWeiLin-MV added the requires:repro The issue is not currently repro-able label Nov 22, 2024
@WangWeiLin-MV
Copy link
Contributor

Using the latest version of vcpkg for local installation does not reproduce the issue.

Please try this demo that use its dependency mpfr by find cgal:

cmake_minimum_required(VERSION 3.25.1)
project(Test VERSION 0.1.2.3 LANGUAGES CXX)

add_executable(main c.cpp)
target_compile_features(main PRIVATE cxx_std_23)

find_package(CGAL CONFIG REQUIRED)
target_link_libraries(main PRIVATE CGAL::CGAL)
#include "CGAL/version.h"
#include "mpfr.h"

#include <iostream>

int main() {
    std::cout << "cgal version:\t" << CGAL_VERSION_STR << std::endl;
    std::cout << "mpfr version:\t" << mpfr_get_version() << std::endl;
    return 0;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
requires:repro The issue is not currently repro-able
Projects
None yet
Development

No branches or pull requests

2 participants