Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find Ogre 2-2 #157

Merged
merged 5 commits into from
Mar 24, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions cmake/FindIgnOGRE2.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
# Example usage:
#
# ign_find_package(IgnOGRE2
# VERSION 2.1.0
# VERSION 2.2.0
# COMPONENTS HlmsPbs HlmsUnlit Overlay)

# sanity check
Expand Down Expand Up @@ -92,12 +92,12 @@ endmacro()
if (NOT WIN32)
set(PKG_CONFIG_PATH_ORIGINAL $ENV{PKG_CONFIG_PATH})

# Note: OGRE2 installed from debs is named OGRE-2.1 while the version
# installed from source does not have the 2.1 suffix
# Note: OGRE2 installed from debs is named OGRE-2.2 while the version
# installed from source does not have the 2.2 suffix
# look for OGRE2 installed from debs
ign_pkg_check_modules_quiet(OGRE2 "OGRE-2.1" NO_CMAKE_ENVIRONMENT_PATH QUIET)
ign_pkg_check_modules_quiet(OGRE2 "OGRE-2.2" NO_CMAKE_ENVIRONMENT_PATH QUIET)
if (OGRE2_FOUND)
set(IGN_PKG_NAME "OGRE-2.1")
set(IGN_PKG_NAME "OGRE-2.2")
else()
# look for OGRE2 installed from source
set(PKG_CONFIG_PATH_TMP ${PKG_CONFIG_PATH_ORIGINAL})
Expand Down