From ba09a804ae64c5b431040066d7602fe854c0ffd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Bylica?= Date: Mon, 15 May 2017 14:59:41 +0200 Subject: [PATCH] CMake: Cleanup ethash library config --- libethash/CMakeLists.txt | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/libethash/CMakeLists.txt b/libethash/CMakeLists.txt index 1f44da43d..2e67a30aa 100644 --- a/libethash/CMakeLists.txt +++ b/libethash/CMakeLists.txt @@ -1,11 +1,3 @@ -set(LIBRARY ethash) - -if (CPPETHEREUM) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") -endif () - -set(CMAKE_BUILD_TYPE Release) - if (NOT MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") endif() @@ -27,10 +19,5 @@ endif() list(APPEND FILES sha3.c sha3.h) -add_library(${LIBRARY} ${FILES}) - -if (CRYPTOPP_FOUND) - TARGET_LINK_LIBRARIES(${LIBRARY} ${CRYPTOPP_LIBRARIES}) -endif() +add_library(ethash ${FILES}) -install( TARGETS ${LIBRARY} RUNTIME DESTINATION bin ARCHIVE DESTINATION lib LIBRARY DESTINATION lib )