math/hpipm: Fix build on i386
... by removing hardcoded -m64. Reported by: fallout
This commit is contained in:
parent
fd5b852a0e
commit
76c7602fdb
1 changed files with 10 additions and 1 deletions
|
@ -18,6 +18,15 @@
|
|||
if(BUILD_SHARED_LIBS MATCHES OFF)
|
||||
set(HPIPM_BLASFEO_LIB "Static" CACHE STRING "BLASFEO library link type")
|
||||
else()
|
||||
@@ -140,7 +140,7 @@ endif()
|
||||
if(${TARGET} MATCHES AVX)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DTARGET_AVX")
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU" OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64 -mavx")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mavx")
|
||||
endif()
|
||||
elseif(${TARGET} MATCHES GENERIC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DTARGET_GENERIC")
|
||||
@@ -151,7 +151,7 @@ if(${REF_BLAS} MATCHES 0)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ")
|
||||
endif(${REF_BLAS} MATCHES 0)
|
||||
|
@ -32,7 +41,7 @@
|
|||
endif(${REF_BLAS} MATCHES NETLIB)
|
||||
if(${REF_BLAS} MATCHES MKL)
|
||||
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DREF_BLAS_MKL -m64 -I/opt/intel/mkl/include")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DREF_BLAS_MKL -m64")
|
||||
+ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DREF_BLAS_MKL")
|
||||
endif(${REF_BLAS} MATCHES MKL)
|
||||
if(${REF_BLAS} MATCHES ATLAS)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DREF_BLAS_ATLAS")
|
||||
|
|
Loading…
Reference in a new issue