You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by mp...@apache.org on 2017/11/06 01:58:43 UTC

mesos git commit: CMake: Fixed the debug build.

Repository: mesos
Updated Branches:
  refs/heads/master 85ed28715 -> ac1d4db99


CMake: Fixed the debug build.

The debug build was outputting messages such as:

```
gmake[3]: *** No rule to make target
'3rdparty/protobuf-3.3.0/src/protobuf-3.3.0-build/libprotobuf.so',
needed by 'src/libmesos-protobufs.so'.  Stop.
gmake[3]: Leaving directory `/home/mpark/projects/mesos/build-debug'
gmake[2]: *** [src/CMakeFiles/mesos-protobufs.dir/all] Error 2
gmake[2]: *** Waiting for unfinished jobs....
```

This was due to the fact that `CMAKE_BUILD_TYPE MATCHES DEBUG` does not
evaluate as expected. It needs to be `CMAKE_BUILD_TYPE MATCHES Debug`.

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


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

Branch: refs/heads/master
Commit: ac1d4db99b9b12843163441188d081b41deccc5d
Parents: 85ed287
Author: Michael Park <mp...@apache.org>
Authored: Sun Nov 5 17:09:39 2017 -0800
Committer: Michael Park <mp...@apache.org>
Committed: Sun Nov 5 17:58:21 2017 -0800

----------------------------------------------------------------------
 3rdparty/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/ac1d4db9/3rdparty/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/3rdparty/CMakeLists.txt b/3rdparty/CMakeLists.txt
index a37a8c6..6acf0c3 100755
--- a/3rdparty/CMakeLists.txt
+++ b/3rdparty/CMakeLists.txt
@@ -758,7 +758,7 @@ if (WIN32)
     IMPORTED_LOCATION_RELEASE ${PROTOBUF_ROOT}-build/Release/protoc.exe)
 else ()
   # This is for single-configuration generators such as GNU Make.
-  if (CMAKE_BUILD_TYPE MATCHES DEBUG)
+  if (CMAKE_BUILD_TYPE MATCHES Debug)
     set(PROTOBUF_SUFFIX d)
   endif ()