Tags: patch Hi,
Due to upstream removal of cmake config, the test failed to run. I just made a simple patch to workaround it.
Please take it. I'm looking forward to see a newer version in testing. See the attachment.
diff -Nur glm-debian-master.orig/debian/tests/glm-tests glm-debian-master.fixed/debian/tests/glm-tests --- glm-debian-master.orig/debian/tests/glm-tests 2019-10-27 13:02:21.321165057 +0800 +++ glm-debian-master.fixed/debian/tests/glm-tests 2019-10-27 15:33:12.111429429 +0800 @@ -13,10 +13,30 @@ # Create a standalone CMake project. rm CMakeLists.txt +mkdir cmake + +cat << EOF > cmake/FindGLM.cmake +SET(_glm_HEADER_SEARCH_DIRS +"/usr/include") +# locate header +FIND_PATH(GLM_INCLUDE_DIR "glm/glm.hpp" +PATHS ${_glm_HEADER_SEARCH_DIRS}) +INCLUDE(FindPackageHandleStandardArgs) +FIND_PACKAGE_HANDLE_STANDARD_ARGS(GLM DEFAULT_MSG +GLM_INCLUDE_DIR) +IF(GLM_FOUND) + SET(GLM_INCLUDE_DIRS "${GLM_INCLUDE_DIR}") + MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}") +ENDIF(GLM_FOUND) + +EOF + cat << EOF > CMakeLists.txt cmake_minimum_required(VERSION 3.0) project(glm-tests) +list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") + enable_testing() find_package(glm REQUIRED)