From 89bf02adb7c956373b0d3fbb12531d4e98c320b0 Mon Sep 17 00:00:00 2001 From: Ievgenii Meshcheriakov Date: Fri, 13 Apr 2018 12:43:15 +0200 Subject: [PATCH] Define GLM_FORCE_CTOR_INIT during build This ensures that GLM objects are still initialized correctly when new version of this library are used (after 0.9.9-a2). This also fixes display corruption in 3D-viewer with Raytracer. Fixes: lp:1762379 * https://bugs.launchpad.net/kicad/+bug/1762379 --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8116960fde..b1d18e54e6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -545,6 +545,8 @@ endif() # find_package( GLM 0.9.5.1 REQUIRED ) +add_definitions( -DGLM_FORCE_CTOR_INIT ) + # # Find CURL library, required for github plugin #