Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 4.2k
    • Issues 4.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 10
    • Merge requests 10
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #21453
Closed
Open
Issue created Nov 18, 2020 by Ted Giblette@tedngiblette

gtest_discover_tests does not honor environment property when running the test executable with the --gtest-list-tests command

The gtest_discover_tests function does not work on Windows whenever the test executable has some dependency on a shared library because it is currently not possible to set the environment path for the call to the test executable with the --gtest-list-tests command. The test executable will get built but the final step of calling the test executable with the --gtest-list-tests command will fail, causing the ctests to not get generated and the overall build to fail. This is not an issue on Linux because the rpath is set on the test executable and the shared libraries are found.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking