mudlet-makers team mailing list archive
-
mudlet-makers team
-
Mailing list archive
-
Message #04139
[Bug 1571439] [NEW] Cmake project file does not include a requirement for a C++11 compiler
Public bug reported:
We are requiring in the QMake project file (./src/src.pro) that the C++
compiler uses C++11 features/behaviour {with a "CONFIG += c++11" entry}
- however no such switch/setting is in the (top-level) CMake project
(./CMakeList.txt), for versions of CMake of at least 3.1 then something
like "set_property(TARGET tgt PROPERTY CXX_STANDARD 11)" should work but
prior to that version there is not a compiler independent way to do this
and at least the Travis C.I. build platform is only using CMake 2.8.11
and that is after we update it from the 2.8.7 that is provided by
default.
Note that CMake is likely to be used for Windows builds, so a solution
should provide coverage for both the Mingw compiler that we might use
for distributable binaries and a MSVC one that individuals might use in
the home for non-distributable own use builds (the Free versions of the
MS compiler do not permit distribution of binaries I understand).
For comparison my Debian OldStable (Wheezy) PC provides a system CMake
version 2.8.12 but then my platform is overdue for an upgrade to Stabe
(Jessie) which may improve on that.
** Affects: mudlet
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Mudlet
Makers, which is subscribed to Mudlet.
https://bugs.launchpad.net/bugs/1571439
Title:
Cmake project file does not include a requirement for a C++11 compiler
Status in Mudlet:
New
Bug description:
We are requiring in the QMake project file (./src/src.pro) that the
C++ compiler uses C++11 features/behaviour {with a "CONFIG += c++11"
entry} - however no such switch/setting is in the (top-level) CMake
project (./CMakeList.txt), for versions of CMake of at least 3.1 then
something like "set_property(TARGET tgt PROPERTY CXX_STANDARD 11)"
should work but prior to that version there is not a compiler
independent way to do this and at least the Travis C.I. build platform
is only using CMake 2.8.11 and that is after we update it from the
2.8.7 that is provided by default.
Note that CMake is likely to be used for Windows builds, so a solution
should provide coverage for both the Mingw compiler that we might use
for distributable binaries and a MSVC one that individuals might use
in the home for non-distributable own use builds (the Free versions of
the MS compiler do not permit distribution of binaries I understand).
For comparison my Debian OldStable (Wheezy) PC provides a system CMake
version 2.8.12 but then my platform is overdue for an upgrade to Stabe
(Jessie) which may improve on that.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mudlet/+bug/1571439/+subscriptions
Follow ups