From 103d421717b1aa342f237636af1e1f99ec98201f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 6 Aug 2013 18:06:43 +0200 Subject: Fix more MinGW issues --- CMakeLists.txt | 8 ++------ 1 file 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) -- cgit v1.2.3