Skip to content
Permalink
Browse files

cmake: update C++11 requirement using MP26 syntax

  • Loading branch information
michaelld committed Dec 2, 2019
1 parent efb296b commit cb7d64131b533a23695817b2aaa464e9e476ba78
Showing with 8 additions and 9 deletions.
  1. +8 −9 devel/cmake/Portfile
@@ -16,15 +16,6 @@ if {${os.platform} eq "darwin" && \
PortGroup legacysupport 1.0
}

# devel requires C++11 as of 2017-08-21
# https://gitlab.kitware.com/cmake/cmake/commit/c1f3eb9f2d628b2911aa17f65012fab0befc4b87
# release requires C++11 as of 3.10.0
if {!((${os.platform} eq "darwin" && ${os.major} < 10) || ${build_arch} eq "ppc" || ${build_arch} eq "ppc64")} {
depends_lib-append port:libcxx
configure.cxx_stdlib libc++
}
PortGroup cxx11 1.1

name cmake

categories devel
@@ -40,6 +31,14 @@ set base_long_description \
homepage https://cmake.org
platforms darwin freebsd

# require C++11
compiler.cxx_standard 2011

if {!((${os.platform} eq "darwin" && ${os.major} < 10) || ${build_arch} eq "ppc" || ${build_arch} eq "ppc64")} {

This comment has been minimized.

Copy link
@RJVB

RJVB Dec 12, 2019

Contributor

I don't get this; why would you force a dependency on libc++ on non-Mac platforms?

This comment has been minimized.

Copy link
@michaelld
depends_lib-append port:libcxx
configure.cxx_stdlib libc++
}

dist_subdir cmake

subport cmake-devel {}

0 comments on commit cb7d641

Please sign in to comment.
You can’t perform that action at this time.