Opened 8 years ago

Closed 8 years ago

#53576 closed defect (fixed)

udunits2 -DCMAKE_INSTALL_INCLUDEDIR is not respected

Reported by: gnw3 Owned by: tenomoto (Takeshi Enomoto)
Priority: Normal Milestone:
Component: ports Version: 2.3.5
Keywords: Cc:
Port: udunits2

Description

Rebuilds of other packages (e.g., ncarg) after installing udunits2 @2.2.24_0 don't find the include files. Previously, we had /opt/local/include/udunits2/udunits2.h but now we are getting /opt/local/include/udunits2.h.

sudo port -s configure udunits2
[...]
DEBUG: Executing command line:  cd "/Users/gwhite/.macports/opt/local/var/macports/build
/_opt_local_var_macports_sources_github.com_macports_macports-ports_science_udunits2/udunits2/work/build" && /opt/local/bin/cmake 
-DCMAKE_INSTALL_PREFIX='/opt/local' -DCMAKE_BUILD_TYPE=Release 
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_C_COMPILER="$CC" 
-DCMAKE_COLOR_MAKEFILE=ON -DCMAKE_CXX_COMPILER="$CXX" 
-DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_INSTALL_NAME_DIR=/opt/local/lib 
-DCMAKE_INSTALL_RPATH=/opt/local/lib -DCMAKE_MODULE_PATH=/opt/local
/share/cmake/Modules -DCMAKE_SYSTEM_PREFIX_PATH="/opt/local;/usr" 
-DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev 
-DCMAKE_INSTALL_INCLUDEDIR=/opt/local/include/udunits2 
-DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" 
-DCMAKE_OSX_ARCHITECTURES="x86_64" 
-DCMAKE_OSX_DEPLOYMENT_TARGET="10.11" -DCMAKE_OSX_SYSROOT="/" 
/Users/X/.macports/opt/local/var/macports/build
/_opt_local_var_macports_sources_github.com_macports_macports-
ports_science_udunits2/udunits2/work/UDUNITS-2-2.2.24 

man 1 cmake has -D <var>:<type>=<value>, but the above settings are missing :type.

Change History (2)

comment:1 Changed 8 years ago by mf2k (Frank Schima)

Cc: takeshi@… removed
Keywords: cmake removed
Owner: set to tenomoto
Status: newassigned

comment:2 Changed 8 years ago by tenomoto (Takeshi Enomoto)

Resolution: fixed
Status: assignedclosed

Done in [ddffae7d2/macports-ports]. I tried providing type PATH without luck.

Note: See TracTickets for help on using tickets.