From e4402cf5759600f068a17d4e4c433dcf87f6197a Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 18 Feb 2017 15:33:09 -0500 Subject: [PATCH] Don't build face recognition example if GUI support isn't enabled. --- examples/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index a94c30fd5..80fbda422 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -44,7 +44,7 @@ ENDMACRO() # to compile the rest of dlib. if (NOT USING_OLD_VISUAL_STUDIO_COMPILER) add_example(dnn_metric_learning_ex) - add_example(dnn_face_recognition_ex) + add_gui_example(dnn_face_recognition_ex) add_example(dnn_introduction_ex) add_example(dnn_introduction2_ex) add_example(dnn_inception_ex)