From 7c61ba3afb2d6229e8ae4747dec2c85e0985adb9 Mon Sep 17 00:00:00 2001 From: lilong12 Date: Mon, 30 Nov 2020 13:26:14 +0800 Subject: [PATCH] update, test=develop (#28095) --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 956f430ab04..36b33e0eba6 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -238,6 +238,12 @@ if(WITH_PROFILER) add_definitions(-DWITH_GPERFTOOLS) endif() +if(WITH_DISTRIBUTE) + if(LINUX) + set(WITH_GLOO ON CACHE STRING "Enable GLOO when compiling WITH_DISTRIBUTE=ON." FORCE) + endif() +endif() + include(ccache) # set ccache for compilation include(util) # set unittest and link libs include(version) # set PADDLE_VERSION @@ -251,12 +257,6 @@ if(WITH_AMD_GPU) include(hip) endif(WITH_AMD_GPU) -if(WITH_DISTRIBUTE) - if(LINUX) - set(WITH_GLOO ON CACHE STRING "Enable GLOO when compiling WITH_DISTRIBUTE=ON." FORCE) - endif() -endif() - if(WITH_ARM) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") -- GitLab