From 361b7622f4afea9898aa0b7b2bdb67b3ed401e73 Mon Sep 17 00:00:00 2001 From: Sean Yen Date: Mon, 13 Jul 2020 16:19:55 -0700 Subject: [PATCH] make the OGRE plugin path discovery portable (#101) Signed-off-by: seanyen --- cmake/FindOGRE.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/FindOGRE.cmake b/cmake/FindOGRE.cmake index 376337c3..77133d44 100644 --- a/cmake/FindOGRE.cmake +++ b/cmake/FindOGRE.cmake @@ -79,7 +79,7 @@ if (OGRE_FOUND) # `plugindir` variable. We have to call pkg-config manually to get it. # On Windows, we assume that all the OGRE* defines are passed in manually # to CMake. - if (NOT WIN32) + if (PKG_CONFIG_FOUND) execute_process(COMMAND pkg-config --variable=plugindir OGRE OUTPUT_VARIABLE _pkgconfig_invoke_result RESULT_VARIABLE _pkgconfig_failed)