CVSROOT: /cvs
Module name: ports
Changes by: [email protected] 2017/09/01 02:45:13
Modified files:
devel/cmake : Makefile
Added files:
devel/cmake/patches: patch-Source_cmakemain_cxx
Log message:
cmake: Fix --find-package mode with imported targets
(upstream git commit 18454ea44d6a1fd2dbc613ad9c3fe941639563aa)
Before:
$ cmake --find-package -DNAME=TIFF -DLANGUAGE=C -DCOMPILER_ID=GNU -DMODE=LINK
CMake Error at /usr/local/share/cmake/Modules/FindTIFF.cmake:78 (add_library):
Unknown CMake command "add_library".
Call Stack (most recent call first):
/usr/local/share/cmake/Modules/CMakeFindPackageMode.cmake:180 (find_package)
TIFF not found.
CMake Error: Problem processing arguments. Aborting.
After:
$ cmake --find-package -DNAME=TIFF -DLANGUAGE=C -DCOMPILER_ID=GNU -DMODE=LINK
-L/usr/local/lib -ltiff -Wl,-rpath-link,/usr/X11R6/lib:/usr/local/lib