Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Guard msinttypes include dir with MSVC and not WIN32

stdint.h is provided by MinGW/MSYS on Win32. It is not provided by MSVC
  • Loading branch information...
commit e50965d73b505480fa4b9cfdfe233c24c012d3a0 1 parent e1cd16d
@alanxz alanxz authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 librabbitmq/CMakeLists.txt
View
5 librabbitmq/CMakeLists.txt
@@ -44,11 +44,14 @@ file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/config.h" ${CONFIG_CONTENTS})
if(WIN32)
set(SOCKET_IMPL "windows")
- set(MSINTTYPES_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../msinttypes")
else(WIN32)
set(SOCKET_IMPL "unix")
endif(WIN32)
+if(MSVC)
+ set(MSINTTYPES_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../msinttypes")
+endif(MSVC)
+
include_directories(${SOCKET_IMPL} ${MSINTTYPES_INCLUDE})
add_definitions(-DBUILDING_LIBRABBITMQ)
Please sign in to comment.
Something went wrong with that request. Please try again.