Skip to content
Snippets Groups Projects
  • Ammar Nejati's avatar
    b544edd5
    CMake: Avoid executing tests during the build phase · b544edd5
    Ammar Nejati authored
    GoogleTest: `gtest_discover_tests` discovers tests by asking the _compiled test
    executable_ to enumerate its tests. `PRE_TEST` delays test discovery until just
    prior to test execution; this avoids calling the executables during the build
    phase and hence, error messages like "Error running test executable".
    
    Related to issue #133
    b544edd5
    History
    CMake: Avoid executing tests during the build phase
    Ammar Nejati authored
    GoogleTest: `gtest_discover_tests` discovers tests by asking the _compiled test
    executable_ to enumerate its tests. `PRE_TEST` delays test discovery until just
    prior to test execution; this avoids calling the executables during the build
    phase and hence, error messages like "Error running test executable".
    
    Related to issue #133