summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-04-02 21:34:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-04-02 21:34:22 +0200
commit14c21258edfd6a1fe403b4cfc77365ef2ce2b7ea (patch)
tree533bbf86b7b10fd1821ae6d3689314ddfe12a67a /CMakeLists.txt
parent3976019f66222e5bd3ae5d078fec745a4073bcbd (diff)
Conditionalize MinGW support
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9fc84904..adc0810d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,7 +67,9 @@ if(NOT SDK_FACEAPI_ONLY)
SET(SDK_OPENCV_STATIC FALSE CACHE BOOL "Whether OpenCV is statically linked")
if (WIN32)
SET(SDK_SM_FACEAPI_PATH "" CACHE PATH "SeeingMachines FaceAPI SDK path")
- set(SDK_MINGW_PATH "" CACHE PATH "MinGW path")
+ if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC)
+ set(SDK_MINGW_PATH "" CACHE PATH "MinGW path")
+ endif()
set(SDK_SIMCONNECT "" CACHE PATH "Path to SimConnect SDK")
set(SDK_DIRECTX "" CACHE PATH "Path to DirectX SDK")
set(SDK_FSUIPC "" CACHE PATH "Path to FSUIPC")