Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Commit

Permalink
Minor fixes for windows install
Browse files Browse the repository at this point in the history
  • Loading branch information
drahosp committed Feb 15, 2014
1 parent af63e22 commit b1c6034
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 90 deletions.
10 changes: 10 additions & 0 deletions CMakeLists.txt
Expand Up @@ -18,6 +18,14 @@ add_definitions ( -D_REENTRANT -D_THREAD_SAFE )
if ( WIN32 )
set ( ZMQ_PLATFORM ZMQ_HAVE_WINDOWS )
set ( LIBS Ws2_32 )
add_definitions(
-DWIN32
-DDLL_EXPORT
# NB: May require tweaking for highly connected applications.
-DFD_SETSIZE=1024
-D_CRT_SECURE_NO_WARNINGS
-D_WIN32_WINNT=${_zmq_WIN32_WINNT}
)
#TODO? HAVE_MINGW32
elseif ( CYGWIN )
set ( ZMQ_PLATFORM ZMQ_HAVE_CYGWIN )
Expand All @@ -38,6 +46,8 @@ else ( )
endif ( )

configure_file ( src/platform.hpp.cmake ${CMAKE_CURRENT_BINARY_DIR}/platform.hpp )
configure_file( src/version.rc.in ${CMAKE_CURRENT_BINARY_DIR}/version.rc )
list ( APPEND ZMQ_SRC ${CMAKE_CURRENT_BINARY_DIR}/version.rc )

add_library ( zmq ${ZMQ_SRC} )
target_link_libraries ( zmq ${LIBS} )
Expand Down
59 changes: 0 additions & 59 deletions cmake/Modules/TestZMQVersion.cmake

This file was deleted.

31 changes: 0 additions & 31 deletions cmake/Modules/zmq_version.cpp

This file was deleted.

Empty file modified cmake/configure.cmake 100755 → 100644
Empty file.

0 comments on commit b1c6034

Please sign in to comment.