diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f1477c8e..df6010271 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,9 +30,7 @@ add_definitions(-DCAFFE_VERSION=${CAFFE_TARGET_VERSION}) list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake/Modules) include(ExternalProject) -if(MSVC) include(GNUInstallDirs) -endif() include(cmake/Utils.cmake) include(cmake/Targets.cmake) diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index 3e3eae4aa..c71ac3d49 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -281,6 +281,7 @@ if(APPLE OR WIN32) else() set(LIBDIR lib64) endif() +set(LIBDIR ${CMAKE_INSTALL_LIBDIR}) # ---[ MKLDNN if(DEFINED ENV{MKLDNNROOT})