File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -80,22 +80,22 @@ $(APPNAME): $(CPPMICROSERVICES) source/build/CMakeCache.txt urts RDRAND
80
80
$(CP ) $(CPPMICROSERVICES ) source/build/bin/
81
81
82
82
CMAKE_VERSION_MAJOR =$(shell cmake --version | head -n 1 | cut -d \ -f 3 | cut -d . -f 1)
83
- CMAKE_VERSION_MINOR =$(shell cmake --version | head -n 1 | cut -d \ -f 3 | cut -d . -f 2)
83
+ CMAKE_VERSION_MINOR =$(shell cmake --version | head -n 1 | cut -d \ -f 3 | cut -d . -f 2 | xargs printf ' % 02d' )
84
84
CMAKE_VERSION =$(CMAKE_VERSION_MAJOR )$(CMAKE_VERSION_MINOR )
85
85
CMAKE := $(HOME ) /cache/bin/cmake
86
86
87
87
.PHONY : CPPMICROSERVICES
88
88
$(CPPMICROSERVICES ) :
89
89
mkdir -p $(CPPMICROSERVICES_DIR ) /build
90
- ifeq ($(shell test $(CMAKE_VERSION ) -lt 32 && echo 1) , 1)
90
+ ifeq ($(shell test $(CMAKE_VERSION ) -lt 302 && echo 1) , 1)
91
91
$(CPPMICROSERVICES_DIR)/install_cmake.sh
92
92
cd $(CPPMICROSERVICES_DIR)/build && $(CMAKE) -DCMAKE_COMMAND=$(CMAKE) $(CPPMICROSERVICES_CONFIG) ../ && $(MAKE) && $(MAKE) install
93
93
else
94
94
cd $(CPPMICROSERVICES_DIR)/build && cmake $(CPPMICROSERVICES_CONFIG) ../ && $(MAKE) && $(MAKE) install
95
95
endif
96
96
97
97
source/build/CMakeCache.txt : $(CPPMICROSERVICES )
98
- ifeq ($(shell test $(CMAKE_VERSION ) -lt 30 && echo 1) , 1)
98
+ ifeq ($(shell test $(CMAKE_VERSION ) -lt 300 && echo 1) , 1)
99
99
mkdir -p source/build && cd source/build && $(CMAKE) -DCMAKE_COMMAND=$(CMAKE) $(AESM_CONFIG) ../
100
100
else
101
101
mkdir -p source/build && cd source/build && cmake $(AESM_CONFIG) ../
You can’t perform that action at this time.
0 commit comments