You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2015/09/28 01:27:42 UTC

[03/20] mesos git commit: CMake: Added preprocessor definitions required to build picojson 1.3.0.

CMake: Added preprocessor definitions required to build picojson 1.3.0.

Review: https://reviews.apache.org/r/38530


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/a051fde5
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/a051fde5
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/a051fde5

Branch: refs/heads/master
Commit: a051fde5413f660aa6c32fd33a6c3687bb905687
Parents: 1eb0519
Author: Alex Clemmer <cl...@gmail.com>
Authored: Sun Sep 27 15:41:15 2015 -0700
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Sun Sep 27 16:03:32 2015 -0700

----------------------------------------------------------------------
 cmake/MesosConfigure.cmake | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/a051fde5/cmake/MesosConfigure.cmake
----------------------------------------------------------------------
diff --git a/cmake/MesosConfigure.cmake b/cmake/MesosConfigure.cmake
index b530da4..e1d53a1 100755
--- a/cmake/MesosConfigure.cmake
+++ b/cmake/MesosConfigure.cmake
@@ -115,3 +115,13 @@ endif (WIN32)
 # NOTE: The third-party configuration variables exported here are used
 # throughout the project, so it's important that this config script goes here.
 include(ProcessConfigure)
+
+# Add preprocessor definitions required to build third-party libraries.
+#######################################################################
+# Enable the INT64 support for PicoJSON.
+add_definitions(-DPICOJSON_USE_INT64)
+# NOTE: PicoJson requires __STDC_FORMAT_MACROS to be defined before importing
+# 'inttypes.h'.  Since other libraries may also import this header, it must
+# be globally defined so that PicoJson has access to the macros, regardless
+# of the order of inclusion.
+add_definitions(-D__STDC_FORMAT_MACROS)