Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions libraries.cmake/coinor.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,12 @@ MACRO( OPENMS_CONTRIB_BUILD_COINOR)

else() ## LINUX & Mac
set(PATCH_FILE "${PROJECT_SOURCE_DIR}/patches/coinor/CbcEventHandler.hpp.diff")
set(PATCHED_FILE "${COINOR_DIR}/Cbc/src/CbcEventHandler.hpp")
OPENMS_PATCH( PATCH_FILE COINOR_DIR PATCHED_FILE)
set(PATCHED_FILE "${COINOR_DIR}/Cbc/src/CbcEventHandler.hpp")
OPENMS_PATCH( PATCH_FILE COINOR_DIR PATCHED_FILE)

set(PATCH_FILE "${PROJECT_SOURCE_DIR}/patches/coinor/CoinTypes.hpp.diff")
set(PATCHED_FILE "${COINOR_DIR}/CoinUtils/src/CoinTypes.hpp")
OPENMS_PATCH( PATCH_FILE COINOR_DIR PATCHED_FILE)

# configure --
if( ${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
Expand Down
15 changes: 15 additions & 0 deletions patches/coinor/CoinTypes.hpp.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
--- CoinUtils/src/CoinTypes.hpp
+++ CoinUtils/src/CoinTypes.hpp
@@ -7,7 +7,11 @@
#include "CoinUtilsConfig.h"

#ifdef HAVE_CINTTYPES
-# include <cinttypes>
+# ifdef _LIBCPP_VERSION
+# include <cinttypes>
+# else
+# include <tr1/cinttypes>
+# endif
#else
# ifdef HAVE_INTTYPES_H
# include <inttypes.h>