Blender Git Commit Log

Git Commits -> Revision 6ac2a20

Revision 6ac2a20 by Ray molenkamp (master)
October 3, 2019, 17:34 (GMT)
Fix: Unit tests on windows.

Problem was twofold

1) `GENERATOR_IS_MULTI_CONFIG` is a property not a variable so
the test for it would always be false, unless you set a custom
CMAKE_INSTALL_PREFIX (like the buildbot does) the unit tests
would have a wrong working directory and complain about missing
dlls or blender executable

2) Tests added outside of `/test` (like libmv) would have no working
folder set since the variable would not be visible for them.

consulted @sergey who voiced the opinion that duplicating the code
to the test macro was slightly less evil than moving it to the main
CMakeLists.txt

Commit Details:

Full Hash: 6ac2a2061f8b7a515ced1b38452ddc2315c617c7
Parent Commit: 79ca5ad
Lines Changed: +9, -0

2 Modified Paths:

/build_files/cmake/Modules/GTestTesting.cmake (+8, -0) (Diff)
/tests/CMakeLists.txt (+1, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021