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:
parent
c8632c2806
commit
b6ddf1ed24
1 changed files with 13 additions and 13 deletions
|
|
@ -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
|
||||
# --------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue