Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
0475c6df
Commit
0475c6df
authored
Dec 18, 2015
by
Ilya Kulakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMAKE_VS_PLATFORM_TOOLSET may not be set.
E.g. for nmake.
parent
c19470ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
CMakeLists.txt
CMakeLists.txt
+13
-7
No files found.
CMakeLists.txt
View file @
0475c6df
...
@@ -180,6 +180,12 @@ endmacro()
...
@@ -180,6 +180,12 @@ endmacro()
if
(
MSVC
)
if
(
MSVC
)
zmq_check_cxx_flag_prepend
(
"/W3"
)
zmq_check_cxx_flag_prepend
(
"/W3"
)
if
(
MSVC_IDE
)
set
(
MSVC_TOOLSET
"-
${
CMAKE_VS_PLATFORM_TOOLSET
}
"
)
else
()
set
(
MSVC_TOOLSET
""
)
endif
()
else
()
else
()
zmq_check_cxx_flag_prepend
(
"-Wall"
)
zmq_check_cxx_flag_prepend
(
"-Wall"
)
endif
()
endif
()
...
@@ -303,8 +309,8 @@ if(MSVC)
...
@@ -303,8 +309,8 @@ if(MSVC)
set
(
OPENPGM_INCLUDE_DIRS
${
OPENPGM_ROOT
}
/include
)
set
(
OPENPGM_INCLUDE_DIRS
${
OPENPGM_ROOT
}
/include
)
set
(
OPENPGM_LIBRARY_DIRS
${
OPENPGM_ROOT
}
/lib
)
set
(
OPENPGM_LIBRARY_DIRS
${
OPENPGM_ROOT
}
/lib
)
set
(
OPENPGM_LIBRARIES
set
(
OPENPGM_LIBRARIES
optimized libpgm
-
${
CMAKE_VS_PLATFORM
_TOOLSET
}
-mt-
${
OPENPGM_VERSION_MAJOR
}
_
${
OPENPGM_VERSION_MINOR
}
_
${
OPENPGM_VERSION_MICRO
}
.lib
optimized libpgm
${
MSVC
_TOOLSET
}
-mt-
${
OPENPGM_VERSION_MAJOR
}
_
${
OPENPGM_VERSION_MINOR
}
_
${
OPENPGM_VERSION_MICRO
}
.lib
debug libpgm
-
${
CMAKE_VS_PLATFORM
_TOOLSET
}
-mt-gd-
${
OPENPGM_VERSION_MAJOR
}
_
${
OPENPGM_VERSION_MINOR
}
_
${
OPENPGM_VERSION_MICRO
}
.lib
)
debug libpgm
${
MSVC
_TOOLSET
}
-mt-gd-
${
OPENPGM_VERSION_MAJOR
}
_
${
OPENPGM_VERSION_MINOR
}
_
${
OPENPGM_VERSION_MICRO
}
.lib
)
endif
()
endif
()
else
()
else
()
if
(
WITH_OPENPGM
)
if
(
WITH_OPENPGM
)
...
@@ -601,15 +607,15 @@ if(MSVC)
...
@@ -601,15 +607,15 @@ if(MSVC)
target_link_libraries
(
libzmq
${
OPTIONAL_LIBRARIES
}
)
target_link_libraries
(
libzmq
${
OPTIONAL_LIBRARIES
}
)
set_target_properties
(
libzmq PROPERTIES
set_target_properties
(
libzmq PROPERTIES
PUBLIC_HEADER
"
${
public_headers
}
"
PUBLIC_HEADER
"
${
public_headers
}
"
RELEASE_POSTFIX
"
-
${
CMAKE_VS_PLATFORM
_TOOLSET
}
-mt-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
RELEASE_POSTFIX
"
${
MSVC
_TOOLSET
}
-mt-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
DEBUG_POSTFIX
"
-
${
CMAKE_VS_PLATFORM
_TOOLSET
}
-mt-gd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
DEBUG_POSTFIX
"
${
MSVC
_TOOLSET
}
-mt-gd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/bin"
RUNTIME_OUTPUT_DIRECTORY
"
${
CMAKE_CURRENT_BINARY_DIR
}
/bin"
COMPILE_DEFINITIONS
"DLL_EXPORT"
)
COMPILE_DEFINITIONS
"DLL_EXPORT"
)
add_library
(
libzmq-static STATIC
${
sources
}
)
add_library
(
libzmq-static STATIC
${
sources
}
)
set_target_properties
(
libzmq-static PROPERTIES
set_target_properties
(
libzmq-static PROPERTIES
PUBLIC_HEADER
"
${
public_headers
}
"
PUBLIC_HEADER
"
${
public_headers
}
"
RELEASE_POSTFIX
"
-
${
CMAKE_VS_PLATFORM
_TOOLSET
}
-mt-s-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
RELEASE_POSTFIX
"
${
MSVC
_TOOLSET
}
-mt-s-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
DEBUG_POSTFIX
"
-
${
CMAKE_VS_PLATFORM
_TOOLSET
}
-mt-sgd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
DEBUG_POSTFIX
"
${
MSVC
_TOOLSET
}
-mt-sgd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
"
COMPILE_FLAGS
"/D ZMQ_STATIC"
COMPILE_FLAGS
"/D ZMQ_STATIC"
OUTPUT_NAME
"libzmq-static"
)
OUTPUT_NAME
"libzmq-static"
)
else
()
else
()
...
@@ -730,7 +736,7 @@ if(MSVC)
...
@@ -730,7 +736,7 @@ if(MSVC)
PUBLIC_HEADER DESTINATION include
PUBLIC_HEADER DESTINATION include
COMPONENT SDK
)
COMPONENT SDK
)
if
(
NOT CMAKE_PDB_OUTPUT_DIRECTORY
)
if
(
NOT CMAKE_PDB_OUTPUT_DIRECTORY
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/bin/libzmq
-
${
CMAKE_VS_PLATFORM
_TOOLSET
}
-mt-gd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
.pdb DESTINATION lib
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/bin/libzmq
${
MSVC
_TOOLSET
}
-mt-gd-
${
ZMQ_VERSION_MAJOR
}
_
${
ZMQ_VERSION_MINOR
}
_
${
ZMQ_VERSION_PATCH
}
.pdb DESTINATION lib
COMPONENT SDK
)
COMPONENT SDK
)
endif
()
endif
()
else
()
else
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment