From 601d1612e0dc83710dc11ca4efc69cb8721abb0b Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 21 Jan 2017 21:26:15 -0500 Subject: [PATCH] Always compile dnn code. --- dlib/CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/dlib/CMakeLists.txt b/dlib/CMakeLists.txt index f041fedb7..35c750929 100644 --- a/dlib/CMakeLists.txt +++ b/dlib/CMakeLists.txt @@ -180,14 +180,11 @@ if (NOT TARGET dlib) tokenizer/tokenizer_kernel_1.cpp unicode/unicode.cpp data_io/image_dataset_metadata.cpp - data_io/mnist.cpp) - - if (COMPILER_CAN_DO_CPP_11) - set(source_files ${source_files} + data_io/mnist.cpp dnn/cpu_dlib.cpp dnn/tensor_tools.cpp - ) - endif() + ) + if (DLIB_ISO_CPP_ONLY) add_library(dlib STATIC ${source_files} )