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 )