Skip to content

Commit

Permalink
Guard msinttypes include dir with MSVC and not WIN32
Browse files Browse the repository at this point in the history
stdint.h is provided by MinGW/MSYS on Win32. It is not provided by MSVC
  • Loading branch information
alanxz committed Nov 4, 2011
1 parent e1cd16d commit e50965d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion librabbitmq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit e50965d

Please sign in to comment.