From: 
Subject: Debian changes

The Debian packaging of glm is maintained in git, using a workflow
similar to the one described in dgit-maint-merge(7).
The Debian delta is represented by this one combined patch; there isn't a
patch queue that can be represented as a quilt series.

A detailed breakdown of the changes is available from their canonical
representation -- git commits in the packaging repository.
For example, to see the changes made by the Debian maintainer in the first
upload of upstream version 1.2.3, you could use:

    % git clone https://git.dgit.debian.org/glm
    % cd glm
    % git log --oneline 1.2.3..debian/1.2.3-1 -- . ':!debian'

(If you have dgit, use `dgit clone glm`, rather than plain `git clone`.)

We don't use debian/source/options single-debian-patch because it has bugs.
Therefore, NMUs etc. may nevertheless have made additional patches.

---

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 034177220..5cfacd493 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -263,17 +263,24 @@ if (GLM_BUILD_INSTALL)
 	install(
 		EXPORT glm
 		NAMESPACE glm::
-		DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glm"
+		DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/glm"
 		FILE glmConfig.cmake
 	)
+
 	include(CMakePackageConfigHelpers)
+
+	set(VERSION_FILE_EXTRA_ARGS "")
+	if (NOT GLM_BUILD_LIBRARY)
+		set(VERSION_FILE_EXTRA_ARGS "ARCH_INDEPENDENT")
+	endif()
 	write_basic_package_version_file(
 		"${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake"
 		COMPATIBILITY AnyNewerVersion
+		${VERSION_FILE_EXTRA_ARGS}
 	)
 	install(
 		FILES "${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake"
-		DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/glm"
+		DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/cmake/glm"
 	)
 
 	configure_file(
@@ -287,4 +294,10 @@ if (GLM_BUILD_INSTALL)
 		"${CMAKE_COMMAND}" -P
 		"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"
 	)
+	cmake_path(APPEND PKGCONFIG_INCLUDEDIR "\${prefix}" "${CMAKE_INSTALL_INCLUDEDIR}")
+	configure_file("cmake/glm.pc.in" "glm.pc" @ONLY)
+	install(
+		FILES "${CMAKE_CURRENT_BINARY_DIR}/glm.pc"
+		DESTINATION "${CMAKE_INSTALL_DATADIR}/pkgconfig"
+	)
 endif()
diff --git a/cmake/glm.pc.in b/cmake/glm.pc.in
new file mode 100644
index 000000000..9b2861488
--- /dev/null
+++ b/cmake/glm.pc.in
@@ -0,0 +1,8 @@
+prefix=@CMAKE_INSTALL_PREFIX@
+includedir=@PKGCONFIG_INCLUDEDIR@
+
+Name: GLM
+Description: OpenGL Mathematics
+URL: https://glm.g-truc.net
+Version: @GLM_VERSION@
+Cflags: -I${includedir}
diff --git a/doc/man.doxy b/doc/man.doxy
index 31f399800..bd6ce4782 100644
--- a/doc/man.doxy
+++ b/doc/man.doxy
@@ -158,7 +158,7 @@ INLINE_INHERITED_MEMB  = NO
 # shortest path that makes the file name unique will be used
 # The default value is: YES.
 
-FULL_PATH_NAMES        = NO
+FULL_PATH_NAMES        = YES
 
 # The STRIP_FROM_PATH tag can be used to strip a user-defined part of the path.
 # Stripping is only done if one of the specified strings matches the left-hand
@@ -170,7 +170,7 @@ FULL_PATH_NAMES        = NO
 # will be relative from the directory where doxygen is started.
 # This tag requires that the tag FULL_PATH_NAMES is set to YES.
 
-STRIP_FROM_PATH        = "C:/Documents and Settings/Groove/       "
+STRIP_FROM_PATH        = ../
 
 # The STRIP_FROM_INC_PATH tag can be used to strip a user-defined part of the
 # path mentioned in the documentation of a class, which tells the reader which
@@ -186,7 +186,7 @@ STRIP_FROM_INC_PATH    =
 # support long names like on DOS, Mac, or CD-ROM.
 # The default value is: NO.
 
-SHORT_NAMES            = YES
+SHORT_NAMES            = NO
 
 # If the JAVADOC_AUTOBRIEF tag is set to YES then doxygen will interpret the
 # first line (until the first dot) of a Javadoc-style comment as the brief
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
index 4ed1403f1..8a2c73925 100644
--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -25,7 +25,7 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
 #		add_compile_options(-Wall)
 #		add_compile_options(-Wextra)
 	endif()
-	add_compile_options(-O2)
+	add_compile_options(-O2 -fno-ipa-modref)
 	#add_compile_options(-Wno-long-long)
 elseif(CMAKE_CXX_COMPILER_ID MATCHES "Intel")
 	if(NOT GLM_QUIET)
