Skip to content

Commit

Permalink
Merge pull request #255 from graft-project/fix/march-x86-64
Browse files Browse the repository at this point in the history
Build for arch x86-64
  • Loading branch information
mbg033 committed Mar 22, 2019
2 parents 80515c3 + 7153b4d commit 120adb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Expand Up @@ -35,6 +35,9 @@ if(CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)

endif(CMAKE_BUILD_TYPE MATCHES RelWithDebInfo)

set(CMAKE_C_FLAGS "-march=x86-64")
set(CMAKE_CXX_FLAGS "-march=x86-64")

project(graft_server)

option(OPT_BUILD_TESTS "Build tests." OFF)
Expand Down Expand Up @@ -86,7 +89,7 @@ ExternalProject_Add(
STAMP_DIR ${PROJECT_BINARY_DIR}/STAMP/cryptonode
TMP_DIR ${PROJECT_BINARY_DIR}/TMP/cryptonode
INSTALL_DIR ${PROJECT_BINARY_DIR}/BUILD
CMAKE_ARGS ${ExternalProjectCMakeArgs} -DSTATIC=ON -DHAVE_EVP_MD_CTX_NEW=YES -DENABLE_SYSLOG=${ENABLE_SYSLOG} -DCMAKE_ROOT_SOURCE_DIR="\"${CMAKE_ROOT_SOURCE_DIR}\""
CMAKE_ARGS ${ExternalProjectCMakeArgs} -DSTATIC=ON -DARCH=x86-64 -DHAVE_EVP_MD_CTX_NEW=YES -DENABLE_SYSLOG=${ENABLE_SYSLOG} -DCMAKE_ROOT_SOURCE_DIR="\"${CMAKE_ROOT_SOURCE_DIR}\""
)

set(CMAKE_CXX_STANDARD 17)
Expand Down

0 comments on commit 120adb8

Please sign in to comment.