diff options
-rw-r--r-- | cmake/InstallMacros.cmake | 46 | ||||
-rw-r--r-- | librabbitmq/CMakeLists.txt | 3 |
2 files changed, 0 insertions, 49 deletions
diff --git a/cmake/InstallMacros.cmake b/cmake/InstallMacros.cmake deleted file mode 100644 index 53e211e..0000000 --- a/cmake/InstallMacros.cmake +++ /dev/null @@ -1,46 +0,0 @@ -# vim:set ts=2 sw=2 sts=2 et: -# -# This module install PDB files. -# -# Based on users posts: -# http://www.cmake.org/pipermail/cmake/2007-October/016924.html -# -# Copyright (c) 2006-2011 Mathieu Malaterre <mathieu.malaterre@gmail.com> -# -# Redistribution and use is allowed according to the terms of the New -# BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# - -macro (install_pdb library) - if (MSVC) - if(CMAKE_CONFIGURATION_TYPES) - # Visual Studio - # The following does not work with LOCATION keyword. See: - # http://www.cmake.org/pipermail/cmake/2011-February/042579.html - foreach(cfg ${CMAKE_CONFIGURATION_TYPES}) - get_target_property(library_dll ${library} LOCATION_${cfg}) - string(REPLACE .dll .pdb library_pdb ${library_dll}) - string(TOLOWER ${cfg} lcfg) - if(lcfg STREQUAL "debug" OR lcfg STREQUAL "relwithdebinfo") - install (FILES ${library_pdb} - DESTINATION bin - CONFIGURATIONS ${cfg} - ) - endif() - endforeach() - else() - # nmake - # Same as above we need the explicit location_<config> variable to account for - # the value of CMAKE_DEBUG_POSTFIX - get_target_property(library_dll ${library} LOCATION_${CMAKE_BUILD_TYPE}) - string(REPLACE .dll .pdb library_pdb ${library_dll}) - string(TOLOWER ${CMAKE_BUILD_TYPE} lcfg) - if(lcfg STREQUAL "debug" OR lcfg STREQUAL "relwithdebinfo") - install (FILES ${library_pdb} - DESTINATION bin - ) - endif() - endif() - endif () -endmacro () diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt index 62ce7e4..993b784 100644 --- a/librabbitmq/CMakeLists.txt +++ b/librabbitmq/CMakeLists.txt @@ -117,8 +117,6 @@ set(RABBITMQ_SOURCES add_definitions(-DAMQP_BUILD) -include(InstallMacros) - set(RMQ_LIBRARIES ${AMQP_SSL_LIBS} ${SOCKET_LIBRARIES} ${LIBRT} ${CMAKE_THREAD_LIBS_INIT}) if (BUILD_SHARED_LIBS) @@ -137,7 +135,6 @@ if (BUILD_SHARED_LIBS) LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} ) - install_pdb(rabbitmq) set(RMQ_LIBRARY_TARGET rabbitmq) endif (BUILD_SHARED_LIBS) |