You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Adding DISCOVERY_MODE "PRE_TEST" to catch_discover_tests causes cmake errors during project generation if Xcode generator is used.
Example error:
CMake Error in Tests/CMakeLists.txt:
Evaluation file to be written multiple times with different content. This
is generally caused by the content evaluating the configuration type,
language, or location of object files:
<Path To Project>/Tests/test-core_include-b12d07c.cmake
Expected behavior
No errors during make project generation and test discovery mode delayed until test execution.
Describe the bug
Adding
DISCOVERY_MODE "PRE_TEST"
tocatch_discover_tests
causes cmake errors during project generation if Xcode generator is used.Example error:
Expected behavior
No errors during make project generation and test discovery mode delayed until test execution.
Reproduction steps
Project setup:
Command to execute:
Platform information:
Additional context
I suspect that DISCOVERY_MODE fails to account for multi config build systems.
The text was updated successfully, but these errors were encountered: