1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-18 04:00:03 +02:00

CMakeLists.txt: Fix Windows build failure (the windows specific stuffs must come after PROGRAM_EXE target)

This commit is contained in:
Henrik Hautakoski 2020-01-09 12:18:11 +01:00
parent c8632c2806
commit b6ddf1ed24

View file

@ -41,6 +41,19 @@ if (USE_THREADS)
endif (Threads_FOUND)
endif (USE_THREADS)
# Include OpenSSL headers
include_directories( ${OPENSSL_INCLUDE_DIR} )
add_executable( ${PROGRAM_EXE} ${PROGRAM_SOURCE} )
target_link_libraries( ${PROGRAM_EXE}
PUBLIC
${OPENSSL_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
install(TARGETS ${PROGRAM_EXE} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# Win32 specific.
if (WIN32)
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
@ -65,19 +78,6 @@ if (WIN32)
install(FILES ${OPENSSL_LIBCRYPTO_DLL} DESTINATION ${CMAKE_INSTALL_BINDIR})
endif (WIN32)
# Include OpenSSL headers
include_directories( ${OPENSSL_INCLUDE_DIR} )
add_executable( ${PROGRAM_EXE} ${PROGRAM_SOURCE} )
target_link_libraries( ${PROGRAM_EXE}
PUBLIC
${OPENSSL_LIBRARIES}
${CMAKE_THREAD_LIBS_INIT}
)
install(TARGETS ${PROGRAM_EXE} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
# --------------------------------
# Additional install files
# --------------------------------