From 946d1c0b1f914ccffd9589a4f70de9d1ab5c6acc Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 3 Apr 2013 17:55:31 +0200 Subject: Fix FaceAPI build issues --- .gitignore | 2 ++ CMakeLists.txt | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d9c75030..c0c7a9dc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /CMakeLists.txt.user *~ +/build* +/install \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index adc0810d..54bb79fd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,10 +92,12 @@ if(NOT SDK_FACEAPI_ONLY) endif() if(WIN32) - set(CMAKE_RC_COMPILER_INIT windres) ENABLE_LANGUAGE(RC) if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC) + set(CMAKE_RC_COMPILER_INIT windres) SET(CMAKE_RC_COMPILE_OBJECT " -O coff -i -o ") + else() + set(CMAKE_RC_COMPILER_INIT rc) endif() endif(WIN32) -- cgit v1.2.3