diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-09-18 12:21:25 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-09-18 12:26:23 +0300 |
commit | 892a5f81761c260aec2a34240601cb27b37ff4b4 (patch) | |
tree | 092254f56d4618d7c2f2daa805fab68f733d1d97 /CMakeLists.txt | |
parent | 3ff15a9e23bd8a20ee514944779a898f1fe5accb (diff) |
Build: disable gtests entirely for Python module
To avoid test failure on Windows.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 85e2a1450d8..b6f9046a883 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1272,6 +1272,11 @@ endif() if(WITH_PYTHON_MODULE) add_definitions(-DPy_ENABLE_SHARED) + # Not currently supported due to different required Python link flags. + if(WITH_GTESTS) + message(STATUS "GTests not compatible with Python module, disabling WITH_GTESTS") + set(WITH_GTESTS OFF) + endif() endif() |