diff --git a/deploy/cpp_infer/CMakeLists.txt b/deploy/cpp_infer/CMakeLists.txt index b1cbf3e71f1b65e701c32c58ef0acf576bcf08f3..0f751a22ce7f848b2d7e268fb92059f9d5170cb5 100644 --- a/deploy/cpp_infer/CMakeLists.txt +++ b/deploy/cpp_infer/CMakeLists.txt @@ -52,9 +52,9 @@ include_directories(${OpenCV_INCLUDE_DIRS}) if (WIN32) add_definitions("/DGOOGLE_GLOG_DLL_DECL=") - if(WITH_MKL) - set(FLAG_OPENMP "/openmp") - endif() + if(WITH_MKL) + set(FLAG_OPENMP "/openmp") + endif() set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} /bigobj /MTd ${FLAG_OPENMP}") set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} /bigobj /MT ${FLAG_OPENMP}") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} /bigobj /MTd ${FLAG_OPENMP}") @@ -63,17 +63,17 @@ if (WIN32) safe_set_static_flag() add_definitions(-DSTATIC_LIB) endif() - message("cmake c debug flags " ${CMAKE_C_FLAGS_DEBUG}) - message("cmake c release flags " ${CMAKE_C_FLAGS_RELEASE}) - message("cmake cxx debug flags " ${CMAKE_CXX_FLAGS_DEBUG}) - message("cmake cxx release flags " ${CMAKE_CXX_FLAGS_RELEASE}) + message("cmake c debug flags " ${CMAKE_C_FLAGS_DEBUG}) + message("cmake c release flags " ${CMAKE_C_FLAGS_RELEASE}) + message("cmake cxx debug flags " ${CMAKE_CXX_FLAGS_DEBUG}) + message("cmake cxx release flags " ${CMAKE_CXX_FLAGS_RELEASE}) else() - if(WITH_MKL) - set(FLAG_OPENMP "-fopenmp") + if(WITH_MKL) + set(FLAG_OPENMP "-fopenmp") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -o3 ${FLAG_OPENMP} -std=c++11") set(CMAKE_STATIC_LIBRARY_PREFIX "") - message("cmake cxx flags" ${CMAKE_CXX_FLAGS}) + message("cmake cxx flags" ${CMAKE_CXX_FLAGS}) endif() if (WITH_GPU)