From fc14725b4699aff7119e99272e63959d68615855 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 15 Sep 2013 04:33:00 +0200 Subject: Ensure FaceAPI is only compiled by MSVC80 --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f21defc..29baf906 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -521,8 +521,10 @@ if(SDK_SM_FACEAPI_PATH) 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() - add_executable(opentrack-faceapi-wrapper ${opentrack-faceapi-wrapper-c}) - target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib") + if(MSVC80) + add_executable(opentrack-faceapi-wrapper ${opentrack-faceapi-wrapper-c}) + target_link_libraries(opentrack-faceapi-wrapper "${SDK_SM_FACEAPI_PATH}/bin/smft32.lib") + endif() endif() if(NOT SDK_FACEAPI_ONLY) @@ -666,7 +668,7 @@ if(MSVC) install(FILES ${pdbs} DESTINATION .) endif() -if(WIN32 AND SDK_SM_FACEAPI_PATH) +if(WIN32 AND SDK_SM_FACEAPI_PATH AND MSVC80) install(TARGETS opentrack-faceapi-wrapper RUNTIME DESTINATION faceapi LIBRARY DESTINATION faceapi -- cgit v1.2.3