[MacPorts] #58450: MacPorts installed cmake gives incoherent results
MacPorts
noreply at macports.org
Mon May 6 21:18:38 UTC 2019
#58450: MacPorts installed cmake gives incoherent results
--------------------+--------------------
Reporter: sandym | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: cmake | Port: cmake
--------------------+--------------------
use the following CMakeLists.txt:
{{{
cmake_minimum_required(VERSION 3.12)
find_path(ICONV_HEADER NAMES "iconv.h")
message("ICONV_HEADER = ${ICONV_HEADER}")
find_library(ICONV_LIB NAMES "iconv" "libiconv")
message("ICONV_LIB = ${ICONV_LIB}")
add_executable(main main.cpp)
}}}
using macports' cmake it will output:
{{{
ICONV_HEADER = /opt/local/include
ICONV_LIB = /usr/lib/libiconv.dylib
}}}
using cmake downloaded from cmake.org:
{{{
ICONV_HEADER =
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include
ICONV_LIB = /usr/lib/libiconv.dylib
}}}
MacPorts one gives the project an inconsistent header / library pair (that
will fail to link in the iconv case).
--
Ticket URL: <https://trac.macports.org/ticket/58450>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list