Compare commits
No commits in common. "c9s" and "c8" have entirely different histories.
23
.gitignore
vendored
23
.gitignore
vendored
@ -1,22 +1 @@
|
|||||||
/glm-0.9.3.2.zip
|
SOURCES/glm-0.9.8.5.zip
|
||||||
/glm-0.9.3.4.zip
|
|
||||||
/glm-0.9.4.2.zip
|
|
||||||
/glm-0.9.4.3.zip
|
|
||||||
/glm-0.9.4.4.zip
|
|
||||||
/glm-0.9.4.5.zip
|
|
||||||
/glm-0.9.4.6.zip
|
|
||||||
/glm-0.9.5.2.zip
|
|
||||||
/glm-0.9.6.1.zip
|
|
||||||
/glm-0.9.6.3.zip
|
|
||||||
/glm-0.9.7.0.zip
|
|
||||||
/glm-0.9.7.2.zip
|
|
||||||
/glm-0.9.7.3.zip
|
|
||||||
/glm-0.9.7.6.zip
|
|
||||||
/glm-0.9.8.2.zip
|
|
||||||
/glm-0.9.8.3.zip
|
|
||||||
/glm-0.9.8.4.zip
|
|
||||||
/glm-0.9.8.5.zip
|
|
||||||
/glm-0.9.9.0.zip
|
|
||||||
/glm-0.9.9.2.zip
|
|
||||||
/glm-0.9.9.6.zip
|
|
||||||
/0.9.9.8.tar.gz
|
|
||||||
|
@ -1 +1 @@
|
|||||||
505e96fedffdb6e8e725ea353e5893576185f0fd 0.9.9.8.tar.gz
|
b40ea2a778e747a6acf7e7591524ad618f01b920 SOURCES/glm-0.9.8.5.zip
|
||||||
|
@ -2,20 +2,19 @@
|
|||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
|
||||||
Name: glm
|
Name: glm
|
||||||
Version: 0.9.9.8
|
Version: 0.9.8.5
|
||||||
Release: 3%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: C++ mathematics library for graphics programming
|
Summary: C++ mathematics library for graphics programming
|
||||||
|
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: http://glm.g-truc.net/
|
URL: http://glm.g-truc.net/
|
||||||
Source0: https://github.com/g-truc/glm/archive/%{version}.tar.gz
|
Source0: https://github.com/g-truc/glm/releases/download/%{version}/%{name}-%{version}.zip
|
||||||
Patch0: glm-0.9.9.8-install.patch
|
Patch0: glm-0.9.6.1-ulp.patch
|
||||||
Patch1: glm-0.9.9.8-noarch.patch
|
|
||||||
|
|
||||||
BuildRequires: gcc
|
# https://github.com/g-truc/glm/commit/dd48b56e44d699a022c69155c8672caacafd9e8a
|
||||||
BuildRequires: gcc-c++
|
Patch1: glm-0.9.8.5-compiler-list.patch
|
||||||
BuildRequires: cmake >= 3.14
|
|
||||||
BuildRequires: make
|
BuildRequires: cmake
|
||||||
|
|
||||||
%description
|
%description
|
||||||
GLM is a C++ library for doing mathematics operations
|
GLM is a C++ library for doing mathematics operations
|
||||||
@ -24,6 +23,7 @@ has been designed to resemble the built-in matrix and vector
|
|||||||
types of the OpenGL shading language.
|
types of the OpenGL shading language.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
|
Group: Development/Libraries
|
||||||
Summary: C++ mathematics library for graphics programming
|
Summary: C++ mathematics library for graphics programming
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -43,6 +43,7 @@ there is no matching run time package.
|
|||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}-devel
|
Summary: Documentation for %{name}-devel
|
||||||
|
Group: Documentation
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
@ -62,7 +63,7 @@ a programming manual for the %{name}-devel package.
|
|||||||
# Also it looks like some versions get shipped with a common
|
# Also it looks like some versions get shipped with a common
|
||||||
# directory in archive root, but with an unusual name for the
|
# directory in archive root, but with an unusual name for the
|
||||||
# directory. In this case, use the -n option of the setup macro.
|
# directory. In this case, use the -n option of the setup macro.
|
||||||
%setup -q
|
%setup -q -n glm
|
||||||
|
|
||||||
# A couple of files had CRLF line-ends in them.
|
# A couple of files had CRLF line-ends in them.
|
||||||
# Check with rpmlint after updating the package that we are not
|
# Check with rpmlint after updating the package that we are not
|
||||||
@ -70,8 +71,8 @@ a programming manual for the %{name}-devel package.
|
|||||||
#
|
#
|
||||||
# This release of glm seems to have shipped with no CRLF file
|
# This release of glm seems to have shipped with no CRLF file
|
||||||
# endings at all, so these are commented out.
|
# endings at all, so these are commented out.
|
||||||
|
sed -i 's/\r//' copying.txt
|
||||||
sed -i 's/\r//' readme.md
|
sed -i 's/\r//' readme.md
|
||||||
sed -i 's/\r//' CMakeLists.txt
|
|
||||||
sed -i 's/\r//' doc/api/doxygen.css
|
sed -i 's/\r//' doc/api/doxygen.css
|
||||||
sed -i 's/\r//' doc/api/dynsections.js
|
sed -i 's/\r//' doc/api/dynsections.js
|
||||||
sed -i 's/\r//' doc/api/jquery.js
|
sed -i 's/\r//' doc/api/jquery.js
|
||||||
@ -83,25 +84,26 @@ sed -i 's/\r//' glm/detail/setup.hpp
|
|||||||
sed -i 's/\r//' glm/simd/platform.h
|
sed -i 's/\r//' glm/simd/platform.h
|
||||||
sed -i 's/\r//' test/core/core_setup_message.cpp
|
sed -i 's/\r//' test/core/core_setup_message.cpp
|
||||||
|
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
|
%patch0 -p1 -b .ulp
|
||||||
|
%patch1 -p1 -b .compiler-list
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
mkdir build
|
||||||
%{cmake} -DGLM_TEST_ENABLE=ON
|
cd build
|
||||||
%cmake_build
|
%{cmake} -DGLM_TEST_ENABLE=ON ..
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
cd build
|
||||||
cd %{_vpath_builddir}
|
|
||||||
|
|
||||||
# Some tests are disabled due to failing tests (to be reported)
|
# Some tests are disabled due to known upstream bugs:
|
||||||
# - test-core_func_common fails on aarch64
|
# https://github.com/g-truc/glm/issues/666
|
||||||
# - test-gtc_packing fails on s390x
|
ctest --output-on-failure -E 'test-core_type_mat(2x4|3x4|4x4)'
|
||||||
ctest --output-on-failure -E '(test-core_func_common|test-gtc_packing)'
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd %{_vpath_builddir}
|
cd build
|
||||||
|
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||||
@ -112,69 +114,24 @@ find $RPM_BUILD_ROOT -name CMakeLists.txt -exec rm -f {} ';'
|
|||||||
# cmake configuration files under /usr/share.
|
# cmake configuration files under /usr/share.
|
||||||
mkdir -pv $RPM_BUILD_ROOT%{_datadir}
|
mkdir -pv $RPM_BUILD_ROOT%{_datadir}
|
||||||
mv $RPM_BUILD_ROOT%{_libdir}/cmake $RPM_BUILD_ROOT%{_datadir}/cmake
|
mv $RPM_BUILD_ROOT%{_libdir}/cmake $RPM_BUILD_ROOT%{_datadir}/cmake
|
||||||
|
mv $RPM_BUILD_ROOT%{_libdir}/pkgconfig $RPM_BUILD_ROOT%{_datadir}/pkgconfig
|
||||||
rmdir $RPM_BUILD_ROOT%{_libdir}
|
rmdir $RPM_BUILD_ROOT%{_libdir}
|
||||||
|
|
||||||
# Here it seems to be acceptable to own the cmake and pkgconfig directories
|
# Here it seems to be acceptable to own the cmake and pkgconfig directories
|
||||||
# as an alternative to having glm-devel depending on cmake and pkg-config
|
# as an alternative to having glm-devel depending on cmake and pkg-config
|
||||||
# https://fedoraproject.org/wiki/Packaging:Guidelines#The_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function
|
# https://fedoraproject.org/wiki/Packaging:Guidelines#The_directory_is_owned_by_a_package_which_is_not_required_for_your_package_to_function
|
||||||
%files devel
|
%files devel
|
||||||
%doc readme.md
|
%doc copying.txt readme.md
|
||||||
%{_includedir}/%{name}
|
%{_includedir}/%{name}
|
||||||
%{_datadir}/cmake
|
%{_datadir}/cmake
|
||||||
|
%{_datadir}/pkgconfig/
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc doc/manual.pdf
|
%doc copying.txt
|
||||||
|
%doc doc/%{name}.pdf
|
||||||
%doc doc/api/
|
%doc doc/api/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.9.8-3
|
|
||||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
||||||
Related: rhbz#1991688
|
|
||||||
|
|
||||||
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 0.9.9.8-2
|
|
||||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
||||||
|
|
||||||
* Sun Feb 07 2021 Joonas Sarajärvi <muep@iki.fi> - 0.9.9.8-1
|
|
||||||
- New upstream release (#1823615)
|
|
||||||
- pkgconfig support is no longer supported in upstream and not shipped
|
|
||||||
|
|
||||||
* Tue Feb 02 2021 Jeff Law <law@redhat.com> - 0.9.9.6-8
|
|
||||||
- Disable strict aliasing due to bugs in testsuite (#1923456)
|
|
||||||
|
|
||||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9.6-7
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Oct 26 2020 Joonas Sarajärvi <muep@iki.fi> - 0.9.9.6-6
|
|
||||||
- Fix #1863634 - FTBFS in Fedora rawhide/f33
|
|
||||||
|
|
||||||
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9.6-5
|
|
||||||
- Second attempt - Rebuilt for
|
|
||||||
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9.6-4
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat May 02 2020 Joonas Sarajärvi <muep@iki.fi> - 0.9.9.6-3
|
|
||||||
- Remove arch check from glmConfigVersion.cmake, fix #1758009
|
|
||||||
|
|
||||||
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9.6-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
||||||
|
|
||||||
* Sat Nov 23 2019 Joonas Sarajärvi <muep@iki.fi> - 0.9.9.6-1
|
|
||||||
- New upstream release
|
|
||||||
|
|
||||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9.2-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.9.2-2
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Oct 11 2018 Joonas Sarajärvi <muep@iki.fi> - 0.9.9.2-1
|
|
||||||
- Update to upstream GLM version 0.9.9.2
|
|
||||||
|
|
||||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.5-3
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
||||||
|
|
||||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.5-2
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8.5-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||||
|
|
@ -1,6 +0,0 @@
|
|||||||
--- !Policy
|
|
||||||
product_versions:
|
|
||||||
- rhel-9
|
|
||||||
decision_context: osci_compose_gate
|
|
||||||
rules:
|
|
||||||
- !PassingTestCaseRule {test_case_name: desktop-qe.desktop-ci.tier1-gating.functional}
|
|
@ -1,150 +0,0 @@
|
|||||||
From 02f26a88537b0b02dd0df77fc858e9449c7e3847 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Krzysztof Kurek <krzysio.kurek@pm.me>
|
|
||||||
Date: Sat, 30 Jan 2021 21:08:48 +0100
|
|
||||||
Subject: [PATCH] Add installation support from PR #1054
|
|
||||||
|
|
||||||
This is based on commit 887827b762111a8e6b4765513b4be212fa6a5426,
|
|
||||||
discovered from https://github.com/g-truc/glm/pull/1054
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 16 ++++++++++++++--
|
|
||||||
cmake/glm/glmConfig-version.cmake | 11 -----------
|
|
||||||
cmake/glm/glmConfig.cmake | 22 ----------------------
|
|
||||||
glm/CMakeLists.txt | 10 +++++++++-
|
|
||||||
manual.md | 21 ++++++++++++++++++++-
|
|
||||||
5 files changed, 43 insertions(+), 37 deletions(-)
|
|
||||||
delete mode 100644 cmake/glm/glmConfig-version.cmake
|
|
||||||
delete mode 100644 cmake/glm/glmConfig.cmake
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index 843e7546..642a5fde 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -3,13 +3,25 @@ cmake_policy(VERSION 3.2)
|
|
||||||
|
|
||||||
set(GLM_VERSION "0.9.9")
|
|
||||||
project(glm VERSION ${GLM_VERSION} LANGUAGES CXX)
|
|
||||||
-enable_testing()
|
|
||||||
+message(STATUS "GLM: Version " ${GLM_VERSION})
|
|
||||||
|
|
||||||
add_subdirectory(glm)
|
|
||||||
add_library(glm::glm ALIAS glm)
|
|
||||||
|
|
||||||
if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
|
|
||||||
-add_subdirectory(test)
|
|
||||||
+ include(CPack)
|
|
||||||
+ install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PATTERN "CMakeLists.txt" EXCLUDE)
|
|
||||||
+ install(EXPORT glm FILE glmConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glm NAMESPACE glm::)
|
|
||||||
+ include(CMakePackageConfigHelpers)
|
|
||||||
+ write_basic_package_version_file("glmConfigVersion.cmake" COMPATIBILITY AnyNewerVersion)
|
|
||||||
+ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glm)
|
|
||||||
+
|
|
||||||
+ include(CTest)
|
|
||||||
+ if(BUILD_TESTING)
|
|
||||||
+ add_subdirectory(test)
|
|
||||||
+ endif()
|
|
||||||
|
|
||||||
endif(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
+
|
|
||||||
+
|
|
||||||
diff --git a/cmake/glm/glmConfig-version.cmake b/cmake/glm/glmConfig-version.cmake
|
|
||||||
deleted file mode 100644
|
|
||||||
index 6e63a4a3..00000000
|
|
||||||
--- a/cmake/glm/glmConfig-version.cmake
|
|
||||||
+++ /dev/null
|
|
||||||
@@ -1,11 +0,0 @@
|
|
||||||
-if(${PACKAGE_FIND_VERSION_MAJOR} EQUAL 0)
|
|
||||||
- if (${PACKAGE_FIND_VERSION} VERSION_LESS ${GLM_VERSION})
|
|
||||||
- set(PACKAGE_VERSION_COMPATIBLE 1)
|
|
||||||
- endif()
|
|
||||||
- if(${PACKAGE_FIND_VERSION} VERSION_EQUAL ${GLM_VERSION})
|
|
||||||
- set(PACKAGE_VERSION_EXACT 1)
|
|
||||||
- endif()
|
|
||||||
-else()
|
|
||||||
- set(PACKAGE_VERSION_UNSUITABLE 1)
|
|
||||||
-endif()
|
|
||||||
-
|
|
||||||
diff --git a/cmake/glm/glmConfig.cmake b/cmake/glm/glmConfig.cmake
|
|
||||||
deleted file mode 100644
|
|
||||||
index 4fba5116..00000000
|
|
||||||
--- a/cmake/glm/glmConfig.cmake
|
|
||||||
+++ /dev/null
|
|
||||||
@@ -1,22 +0,0 @@
|
|
||||||
-cmake_minimum_required(VERSION 3.2 FATAL_ERROR)
|
|
||||||
-cmake_policy(VERSION 3.2)
|
|
||||||
-
|
|
||||||
-set(GLM_VERSION 0.9.9)
|
|
||||||
-
|
|
||||||
-get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
||||||
-get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
||||||
-get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH)
|
|
||||||
-if (_IMPORT_PREFIX STREQUAL "/")
|
|
||||||
- set(_IMPORT_PREFIX "")
|
|
||||||
-endif()
|
|
||||||
-
|
|
||||||
-# Set the old GLM_INCLUDE_DIRS variable for backwards compatibility
|
|
||||||
-set(GLM_INCLUDE_DIRS ${_IMPORT_PREFIX})
|
|
||||||
-
|
|
||||||
-add_library(glm::glm INTERFACE IMPORTED)
|
|
||||||
-set_target_properties(glm::glm PROPERTIES
|
|
||||||
- INTERFACE_INCLUDE_DIRECTORIES ${GLM_INCLUDE_DIRS})
|
|
||||||
-
|
|
||||||
-mark_as_advanced(glm_DIR)
|
|
||||||
-set(_IMPORT_PREFIX)
|
|
||||||
-
|
|
||||||
diff --git a/glm/CMakeLists.txt b/glm/CMakeLists.txt
|
|
||||||
index 4ff51c81..cee0d2e7 100644
|
|
||||||
--- a/glm/CMakeLists.txt
|
|
||||||
+++ b/glm/CMakeLists.txt
|
|
||||||
@@ -43,7 +43,15 @@ source_group("SIMD Files" FILES ${SIMD_INLINE})
|
|
||||||
source_group("SIMD Files" FILES ${SIMD_HEADER})
|
|
||||||
|
|
||||||
add_library(glm INTERFACE)
|
|
||||||
-target_include_directories(glm INTERFACE ../)
|
|
||||||
+
|
|
||||||
+include(GNUInstallDirs)
|
|
||||||
+
|
|
||||||
+target_include_directories(glm INTERFACE
|
|
||||||
+ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
|
|
||||||
+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
|
||||||
+)
|
|
||||||
+
|
|
||||||
+install(TARGETS glm EXPORT glm)
|
|
||||||
|
|
||||||
if(BUILD_STATIC_LIBS)
|
|
||||||
add_library(glm_static STATIC ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT}
|
|
||||||
diff --git a/manual.md b/manual.md
|
|
||||||
index a7f6956f..d53df3d7 100644
|
|
||||||
--- a/manual.md
|
|
||||||
+++ b/manual.md
|
|
||||||
@@ -277,7 +277,26 @@ GLM does not depend on external libraries or headers such as `<GL/gl.h>`, [`<GL/
|
|
||||||
|
|
||||||
### <a name="section1_5"></a> 1.5. Finding GLM with CMake
|
|
||||||
|
|
||||||
-GLM packages a `glmConfig.cmake` and `glmConfig-version.cmake` in the root of the repository and the release archives. To find GLM with CMake you can pass `-Dglm_DIR=<path to glm root>/cmake/glm/` when running CMake. You can then either add `${GLM_INCLUDE_DIRS}` to your target's include directories, or link against the imported `glm::glm` target.
|
|
||||||
+When installed, GLM provides the CMake package configuration files `glmConfig.cmake` and `glmConfigVersion.cmake`.
|
|
||||||
+
|
|
||||||
+To use these configurations files, you may need to set the `glm_DIR` variable to the directory containing the configuration files `<installation prefix>/lib/cmake/glm/`.
|
|
||||||
+
|
|
||||||
+Use the `find_package` CMake command to load the configurations into your project. Lastly, either link your executable against the `glm::glm` target or add `${GLM_INCLUDE_DIRS}` to your target's include directories:
|
|
||||||
+
|
|
||||||
+```cmake
|
|
||||||
+set(glm_DIR <installation prefix>/lib/cmake/glm) # if necessary
|
|
||||||
+find_package(glm REQUIRED)
|
|
||||||
+target_link_libraries(<your executable> glm::glm)
|
|
||||||
+```
|
|
||||||
+
|
|
||||||
+To use GLM as a submodule in a project instead, use `add_subdirectory` to expose the same target, or add the directory to your target's
|
|
||||||
+
|
|
||||||
+```cmake
|
|
||||||
+add_subdirectory(glm)
|
|
||||||
+target_link_libraries(<your executable> glm::glm)
|
|
||||||
+# or
|
|
||||||
+target_include_directories(<your executable> glm)
|
|
||||||
+```
|
|
||||||
|
|
||||||
---
|
|
||||||
<div style="page-break-after: always;"> </div>
|
|
||||||
--
|
|
||||||
2.29.2
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
From e0c728eca35d6d9c34d239c56bdcfb460b378676 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Joonas=20Saraj=C3=A4rvi?= <muep@iki.fi>
|
|
||||||
Date: Sun, 7 Feb 2021 19:34:40 +0200
|
|
||||||
Subject: [PATCH] Use built-in mechanism for marking arch-independent
|
|
||||||
|
|
||||||
---
|
|
||||||
CMakeLists.txt | 2 +-
|
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index 642a5fde..a7b80449 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -14,7 +14,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_SOURCE_DIR})
|
|
||||||
install(DIRECTORY glm DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} PATTERN "CMakeLists.txt" EXCLUDE)
|
|
||||||
install(EXPORT glm FILE glmConfig.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glm NAMESPACE glm::)
|
|
||||||
include(CMakePackageConfigHelpers)
|
|
||||||
- write_basic_package_version_file("glmConfigVersion.cmake" COMPATIBILITY AnyNewerVersion)
|
|
||||||
+ write_basic_package_version_file("glmConfigVersion.cmake" COMPATIBILITY AnyNewerVersion ARCH_INDEPENDENT)
|
|
||||||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/glmConfigVersion.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/glm)
|
|
||||||
|
|
||||||
include(CTest)
|
|
||||||
--
|
|
||||||
2.29.2
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user