Skip to content

Commit

Permalink
Merge pull request #5 from hyperledger/develop
Browse files Browse the repository at this point in the history
Prepare for hunterization
  • Loading branch information
Warchant authored Feb 8, 2018
2 parents e7188b8 + 1626993 commit abe080d
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ set(SOVERSION "${ED25519_MAJOR_VERSION}.${ED25519_MINOR_VERSION}.${ED25519_PATCH
project(ed25519 VERSION ${SOVERSION} LANGUAGES C CXX)

SET(CMAKE_POSITION_INDEPENDENT_CODE TRUE)
SET(CMAKE_CXX_FLAGS "-std=c++14 -Wall")
SET(CMAKE_CXX_FLAGS_RELEASE "-O3")
SET(CMAKE_CXX_FLAGS_DEBUG "-g -Wextra -O0 -fdiagnostics-color")
SET(CMAKE_C_FLAGS "-Wall")
SET(CMAKE_C_FLAGS_RELEASE "-O3 -funroll-loops -fomit-frame-pointer")
SET(CMAKE_C_FLAGS_DEBUG "-g -Wextra -O0 -fdiagnostics-color ")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14 -Wall")
SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3")
SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g -Wextra -O0 -fdiagnostics-color")
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
SET(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -funroll-loops -fomit-frame-pointer")
SET(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -g -Wextra -O0 -fdiagnostics-color ")
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
SET(CMAKE_EXPORT_COMPILE_COMMANDS "ON")
Expand Down Expand Up @@ -83,11 +83,6 @@ add_library(ed25519 ${BUILD}
$<TARGET_OBJECTS:${HASH}>
$<TARGET_OBJECTS:${RANDOM}>
)
generate_export_header(ed25519)
install(
FILES ${CMAKE_CURRENT_BINARY_DIR}/ed25519_export.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
set_target_properties(ed25519 PROPERTIES
VERSION ${SOVERSION}
SOVERSION ${SOVERSION}
Expand Down

0 comments on commit abe080d

Please sign in to comment.