summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-08-06 18:06:43 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-08-06 18:06:43 +0200
commit103d421717b1aa342f237636af1e1f99ec98201f (patch)
treef18bcc6ed9eb631ef1e8d34d6dd10700e26407bf /CMakeLists.txt
parentc78c8a3c6948cd24ecc6d4681cda1577f65edae8 (diff)
Fix more MinGW issues
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 2 insertions, 6 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8295d062..b0a5af63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -515,13 +515,9 @@ if(WIN32 AND NOT SDK_FACEAPI_ONLY)
add_library(opentrack-tracker-faceapi SHARED ${opentrack-tracker-faceapi-c} ${opentrack-tracker-faceapi-moc} ${opentrack-tracker-faceapi-uih} ${opentrack-tracker-faceapi-rcc})
target_link_libraries(opentrack-tracker-faceapi ${MY_QT_LIBS} opentrack-compat)
endif()
-if(MSVC80 AND SDK_SM_FACEAPI_PATH)
+if((MSVC80 OR MINGW) AND SDK_SM_FACEAPI_PATH)
add_executable(opentrack-faceapi-wrapper ${opentrack-faceapi-wrapper-c})
- if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
- target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib" "${SDK_MSVC80_PATH}/lib/msvcrt.lib")
- else()
- target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib")
- endif()
+ target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib")
endif()
if(NOT SDK_FACEAPI_ONLY)