diff options
author | fireice-uk <fireice2@o2.pl> | 2017-01-06 14:55:31 +0000 |
---|---|---|
committer | fireice-uk <fireice2@o2.pl> | 2017-01-06 14:55:31 +0000 |
commit | 0bf267784323191186125ed8fa4f6d4a0e67ce5b (patch) | |
tree | 4faa11eb88d120b2c0a08ded6f680f55076cdb52 /CMakeLists.txt | |
parent | 3863a31afd8b4a6809552c1fd2204c9b87b78331 (diff) | |
download | xmr-stak-0bf267784323191186125ed8fa4f6d4a0e67ce5b.zip xmr-stak-0bf267784323191186125ed8fa4f6d4a0e67ce5b.tar.gz |
Static build option
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index cf66841..9ce3c76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8,11 +8,18 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") 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(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-s") -SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "-s") +#set(CMAKE_VERBOSE_MAKEFILE ON) +set(CMAKE_CONFIGURATION_TYPES "RELEASE;STATIC") +if("${CMAKE_BUILD_TYPE}" STREQUAL "") + set(CMAKE_BUILD_TYPE RELEASE) +endif() + +set(CMAKE_C_FLAGS "-DNDEBUG -march=westmere -O3 -m64 -s") +set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11") + +set(CMAKE_EXE_LINKER_FLAGS_RELSEASE "") +set(CMAKE_EXE_LINKER_FLAGS_STATIC "-static") + set(EXECUTABLE_OUTPUT_PATH "bin") file(GLOB SOURCES "crypto/*.c" "*.cpp") |