mesos-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Schwartzmeyer (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (MESOS-7943) Support non-Win32 multiconfig generators
Date Wed, 06 Sep 2017 21:57:00 GMT

     [ https://issues.apache.org/jira/browse/MESOS-7943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrew Schwartzmeyer reassigned MESOS-7943:
-------------------------------------------

    Assignee: Andrew Schwartzmeyer

> Support non-Win32 multiconfig generators
> ----------------------------------------
>
>                 Key: MESOS-7943
>                 URL: https://issues.apache.org/jira/browse/MESOS-7943
>             Project: Mesos
>          Issue Type: Bug
>          Components: cmake
>            Reporter: Benjamin Bannier
>            Assignee: Andrew Schwartzmeyer
>              Labels: cmake, mesosphere
>
> The cmake build setup currently does not support non-Win32 multiconfig generators like
Xcode,
> {code}
> clang: error: no such file or directory: '/Users/bbannier/src/mesos/_xcode/3rdparty/protobuf-3.3.0/src/protobuf-3.3.0-build/libprotobuf.dylib'
> clang: error: no such file or directory: '/Users/bbannier/src/mesos/_xcode/3rdparty/googletest-1.8.0/src/googletest-1.8.0-build/googlemock/libgmock.a'
> clang: error: no such file or directory: '/Users/bbannier/src/mesos/_xcode/3rdparty/googletest-1.8.0/src/googletest-1.8.0-build/googlemock/gtest/libgtest.a'
> {code}
> The issue here seems to be that the cmake setup assumes that only {{WIN32}} uses a multiconfig
generator, e.g.,
> {code}
> if (WIN32)
>   set_target_properties(
>     protobuf PROPERTIES
>     IMPORTED_LOCATION_DEBUG ${PROTOBUF_ROOT}-build/Debug/libprotobufd${LIBRARY_SUFFIX}
>     IMPORTED_LOCATION_RELEASE ${PROTOBUF_ROOT}-build/Release/libprotobuf${LIBRARY_SUFFIX})
>   set_target_properties(
>     protoc PROPERTIES
>     IMPORTED_LOCATION_DEBUG ${PROTOBUF_ROOT}-build/Debug/protoc.exe
>     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)
>     set(PROTOBUF_SUFFIX d)
>   endif ()
>   set_target_properties(
>     protobuf PROPERTIES
>     IMPORTED_LOCATION ${PROTOBUF_ROOT}-build/libprotobuf${PROTOBUF_SUFFIX}${LIBRARY_SUFFIX})
>   set_target_properties(
>     protoc PROPERTIES
>     IMPORTED_LOCATION ${PROTOBUF_ROOT}-build/protoc)
> endif ()
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message