mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 17:58:01 +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
|
# platform specifics
|
||||||
|
|
||||||
if(MSVC)
|
if (WIN32)
|
||||||
add_definitions(
|
|
||||||
-DWIN32
|
|
||||||
# NB: May require tweaking for highly connected applications.
|
# NB: May require tweaking for highly connected applications.
|
||||||
-DFD_SETSIZE=4096
|
add_definitions (-DFD_SETSIZE=4096)
|
||||||
-D_CRT_SECURE_NO_WARNINGS)
|
add_definitions (-D_CRT_SECURE_NO_WARNINGS)
|
||||||
|
endif ()
|
||||||
|
|
||||||
|
if(MSVC)
|
||||||
# Parallel make.
|
# Parallel make.
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user