Last active
January 9, 2017 21:45
-
-
Save dimecoin/094c1378c423a4fb46586186723001db to your computer and use it in GitHub Desktop.
cmake for static builds of xmr-stak-cpu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project(xmr-stak-cpu) | |
cmake_minimum_required(VERSION 2.8.10) | |
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") | |
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 5.1) | |
message(FATAL_ERROR "GCC version must be at least 5.1!") | |
endif() | |
endif() | |
#SET(CMAKE_VERBOSE_MAKEFILE ON) | |
SET(CMAKE_C_FLAGS "-DNDEBUG -march=westmere -O3 -m64") | |
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11") | |
set(EXECUTABLE_OUTPUT_PATH "bin") | |
file(GLOB SOURCES "crypto/*.c" "*.cpp") | |
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") | |
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++") | |
add_executable(xmr-stak-cpu ${SOURCES}) | |
target_link_libraries(xmr-stak-cpu pthread) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This was merged. Please use the 'static' build option instead of this config. Keeping for reference.