GLM: Check for incompatible glm version in cmake
GLM version 0.9.9.3 has a C++11 error that causes issues for KiCad. Earlier version function as expected. Since GLM is header-only, forcing the version during compilation is sufficient to ensure that the executable functions correctly. Fixes: lp:1804030 * https://bugs.launchpad.net/kicad/+bug/1804030
This commit is contained in:
parent
7e9fee285f
commit
968ea983aa
|
@ -587,6 +587,10 @@ endif()
|
|||
# Find GLM library, required
|
||||
#
|
||||
find_package( GLM 0.9.5.1 REQUIRED )
|
||||
if( GLM_VERSION MATCHES "0.9.9.3" )
|
||||
MESSAGE( FATAL_ERROR "\nGLM version ${GLM_VERSION} is incompatible with KiCad.\n"
|
||||
"Please downgrade to GLM version 0.9.9.2 or older" )
|
||||
endif()
|
||||
|
||||
add_definitions( -DGLM_FORCE_CTOR_INIT )
|
||||
|
||||
|
|
Loading…
Reference in New Issue