-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from AlwinEsch/Leia-change
[Leia] fix standalone build with newer glm versions (>= 0.9.9.6)
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#.rst: | ||
# Findglm | ||
# ------------ | ||
# Finds the OpenGL Mathematics (GLM) as a header only C++ mathematics library. | ||
# | ||
# This will define the following variables: | ||
# | ||
# GLM_FOUND - system has OpenGLES | ||
# GLM_INCLUDE_DIR - the OpenGLES include directory | ||
# | ||
# Note: Install was removed from GLM on version 0.9.9.6. | ||
|
||
find_package(PkgConfig) | ||
if(PKG_CONFIG_FOUND) | ||
pkg_check_modules(PC_GLM glm QUIET) | ||
endif() | ||
|
||
find_path(GLM_INCLUDE_DIR glm.hpp | ||
PATHS ${PC_GLM_INCLUDEDIR} | ||
PATH_SUFFIXES glm) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(glm REQUIRED_VARS GLM_INCLUDE_DIR) | ||
|
||
mark_as_advanced(GLM_INCLUDE_DIR) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters