mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
mutualize win32 flags
This commit is contained in:
parent
7dfa7b7a5d
commit
80044c9ed6
@ -338,13 +338,13 @@ set(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR}/lib)
|
||||
#-----------------------------------------------------------------------------
|
||||
# platform specifics
|
||||
|
||||
if(MSVC)
|
||||
add_definitions(
|
||||
-DWIN32
|
||||
if (WIN32)
|
||||
# NB: May require tweaking for highly connected applications.
|
||||
-DFD_SETSIZE=4096
|
||||
-D_CRT_SECURE_NO_WARNINGS)
|
||||
add_definitions (-DFD_SETSIZE=4096)
|
||||
add_definitions (-D_CRT_SECURE_NO_WARNINGS)
|
||||
endif ()
|
||||
|
||||
if(MSVC)
|
||||
# Parallel make.
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user