Browse Source

CMake: Cleanup ethash library config

cl-refactor
Paweł Bylica 8 years ago
parent
commit
ba09a804ae
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 15
      libethash/CMakeLists.txt

15
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 )

Loading…
Cancel
Save