[vlmc-devel] CMakeLists: Don't run apple specific code on all platforms

Hugo Beauzée-Luyssen git at videolan.org
Sun Apr 10 15:37:47 CEST 2016


vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Sun Apr 10 15:35:36 2016 +0200| [7c5b378acb5ca2b497dc5f0706839c058af333e5] | committer: Hugo Beauzée-Luyssen

CMakeLists: Don't run apple specific code on all platforms

> https://code.videolan.org/videolan/vlmc/commit/7c5b378acb5ca2b497dc5f0706839c058af333e5
---

 src/CMakeLists.txt | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 0fda9f5..ce7fa9f 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -4,8 +4,10 @@
 #          Ludovic Fauvet <etix at vlmc.org>
 #
 
-# Manually set Qt5 path for OSX installed using brew
-SET(CMAKE_PREFIX_PATH "/usr/local/opt/qt5")
+if (APPLE)
+    # Manually set Qt5 path for OSX installed using brew
+    SET(CMAKE_PREFIX_PATH "/usr/local/opt/qt5")
+endif()
 
 # search for Qt5
 find_package(Qt5Core QUIET)



More information about the Vlmc-devel mailing list