summaryrefslogtreecommitdiffstats
path: root/src/cmake/cpu.cmake
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2018-08-27 11:40:58 +0200
committerDamjan Marion <damarion@cisco.com>2018-08-27 11:58:18 +0200
commitc261760d907a67ba9548104140785771668d8e83 (patch)
treef918ce4f57488aa35dcfc44f2a1da9abb48f2fa3 /src/cmake/cpu.cmake
parent4553c95ab7cac75838433fdd5cd3c0d0c1d6e2e6 (diff)
cmake: use lib64 for lib dir
While not sure if this is right or not, this is what autotools do Change-Id: I01f22281302b1383b0e69c3f03e5c8f8a8961358 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/cmake/cpu.cmake')
-rw-r--r--src/cmake/cpu.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmake/cpu.cmake b/src/cmake/cpu.cmake
index e0311cea2ee..9a0dfdd5bcb 100644
--- a/src/cmake/cpu.cmake
+++ b/src/cmake/cpu.cmake
@@ -16,6 +16,7 @@
##############################################################################
if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
set(CMAKE_C_FLAGS "-march=corei7 -mtune=corei7-avx ${CMAKE_C_FLAGS}")
+ set(VPP_LIB_DIR_NAME lib64)
check_c_compiler_flag("-march=core-avx2" AVX2)
if(AVX2)
list(APPEND MARCH_VARIANTS "avx2\;-march=core-avx2 -mtune=core-avx2")
@@ -26,6 +27,9 @@ if(CMAKE_SYSTEM_PROCESSOR MATCHES "amd64.*|x86_64.*|AMD64.*")
endif()
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64.*|AARCH64.*)")
set(CMAKE_C_FLAGS "-march=armv8-a+crc ${CMAKE_C_FLAGS}")
+ set(VPP_LIB_DIR_NAME lib64)
+else()
+ set(VPP_LIB_DIR_NAME lib)
endif()
macro(vpp_library_set_multiarch_sources lib)