[Dist/Debian] Fix build error on not-x86_64 architectures 90/222390/1
authorWook Song <wook16.song@samsung.com>
Tue, 14 Jan 2020 08:22:49 +0000 (17:22 +0900)
committerWook Song <wook16.song@samsung.com>
Tue, 14 Jan 2020 08:22:49 +0000 (17:22 +0900)
This patch fixes errors while building on not-x86_64 architectures.

Change-Id: I9b04e34e9eb49c15c9cea6017eb9c4881479f318
Signed-off-by: Wook Song <wook16.song@samsung.com>
debian/rules

index cdf3009..1a6e456 100755 (executable)
@@ -19,8 +19,10 @@ VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/^[[:digit:]]*://' -e 's/[~-].*/
 
 ifneq ($(filter $(DEB_HOST_ARCH),amd64),)
 ENABLE_MKL_DNN=ON
+ENABLE_SSE42=1
 else
 ENABLE_MKL_DNN=OFF
+ENABLE_SSE42=0
 endif
 
 %:
@@ -48,7 +50,7 @@ override_dh_auto_configure:
                        -DBUILD_SHARED_LIBS:BOOL=OFF -DENABLE_ALTERNATIVE_TEMP=OFF \
                        -DUSE_TBB_SYSTEM_DEPS=ON -DUSE_MYRIAD_SYSTEM_DEPS=ON \
                        -DENABLE_VPU=ON -DENABLE_MYRIAD=ON -DENABLE_MYRIAD_MVNC_TESTS=OFF -DENABLE_MYRIAD_NO_BOOT=OFF \
-                       -DENABLE_MKL_DNN=$(ENABLE_MKL_DNN) -DENABLE_GNA=OFF \
+                       -DENABLE_MKL_DNN=$(ENABLE_MKL_DNN) -DENABLE_SSE42=$(ENABLE_SSE42) -DENABLE_GNA=OFF \
                        -DBUILD_ADE_DOCUMENTATION=OFF -DBUILD_ADE_TUTORIAL=OFF \
                        -DBUILD_TESTING=OFF -DBUILD_TESTS=OFF \
                        -DCLDNN__INCLUDE_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=Release -DCOVERAGE=OFF \