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
ebe4eab4
Commit
ebe4eab4
authored
Oct 12, 2012
by
Steve-o
Committed by
Steven McCoy
Oct 13, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Detect compiler version to tag libraries.
parent
046c8ec7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
+14
-6
CMakeLists.txt
CMakeLists.txt
+5
-5
TestZMQVersion.cmake
cmake/Modules/TestZMQVersion.cmake
+9
-1
No files found.
CMakeLists.txt
View file @
ebe4eab4
...
@@ -242,15 +242,15 @@ endforeach (txt ${docs})
...
@@ -242,15 +242,15 @@ endforeach (txt ${docs})
add_library
(
libzmq SHARED
${
sources
}
${
html-docs
}
${
CMAKE_BINARY_DIR
}
/NSIS.template.in
)
add_library
(
libzmq SHARED
${
sources
}
${
html-docs
}
${
CMAKE_BINARY_DIR
}
/NSIS.template.in
)
target_link_libraries
(
libzmq ws2_32.lib rpcrt4.lib
)
target_link_libraries
(
libzmq ws2_32.lib rpcrt4.lib
)
set_target_properties
(
libzmq PROPERTIES RELEASE_POSTFIX
"
-v100-mt"
DEBUG_POSTFIX
"-v100
-mt-gd"
)
set_target_properties
(
libzmq PROPERTIES RELEASE_POSTFIX
"
${
_zmq_COMPILER
}
-mt"
DEBUG_POSTFIX
"
${
_zmq_COMPILER
}
-mt-gd"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
if
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
-v100
-mt-gd.dll DESTINATION bin COMPONENT SDK
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
${
_zmq_COMPILER
}
-mt-gd.dll DESTINATION bin COMPONENT SDK
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
-v100
-mt-gd.lib DESTINATION lib COMPONENT SDK
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
${
_zmq_COMPILER
}
-mt-gd.lib DESTINATION lib COMPONENT SDK
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
-v100
-mt-gd.pdb DESTINATION lib COMPONENT SDK
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
${
_zmq_COMPILER
}
-mt-gd.pdb DESTINATION lib COMPONENT SDK
)
else
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
else
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
install
(
TARGETS libzmq RUNTIME DESTINATION bin COMPONENT Runtime
)
install
(
TARGETS libzmq RUNTIME DESTINATION bin COMPONENT Runtime
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
-v100
-mt.lib DESTINATION lib COMPONENT SDK
)
install
(
FILES
${
CMAKE_BINARY_DIR
}
/lib/libzmq
${
_zmq_COMPILER
}
-mt.lib DESTINATION lib COMPONENT SDK
)
endif
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
endif
(
CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
install
(
FILES
${
headers
}
DESTINATION include COMPONENT SDK
)
install
(
FILES
${
headers
}
DESTINATION include COMPONENT SDK
)
...
...
cmake/Modules/TestZMQVersion.cmake
View file @
ebe4eab4
...
@@ -24,4 +24,12 @@
...
@@ -24,4 +24,12 @@
MESSAGE
(
STATUS
"Detecting ZMQ - failed"
)
MESSAGE
(
STATUS
"Detecting ZMQ - failed"
)
ENDIF
()
ENDIF
()
if
(
MSVC11
)
set
(
_zmq_COMPILER
"-v110"
)
elseif
(
MSVC10
)
set
(
_zmq_COMPILER
"-v100"
)
elseif
(
MSVC90
)
set
(
_zmq_COMPILER
"-v90"
)
else
()
set
(
_zmq_COMPILER
""
)
endif
()
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