[opensuse-packaging] cmake and %_libdir
Trying to package OpenCV 2.0 I found this line in the CMakeLists.txt file: set(CMAKE_LIB_DIRS_CONFIGCMAKE "${CMAKE_INSTALL_PREFIX}/lib") that ends specifying the libraries install dir. It should be fixed... but doesn't seems to be a standard variable in cmake to specify the libdir. The only thing I have found is this thread from 2007 (http://lists.opensuse.org/opensuse-buildservice/2007-08/msg00332.html)... but as pointed by Andreas LIB_SUFFIX isn't an standard variable. Looking at the Fedora %cmake macro (https://fedoraproject.org/wiki/PackagingDrafts/cmake) this doesn't looks any better. So... two years after cmake still hasn't a way to specify the libraries install directory? I can't submit upstream a patch with a non standard variable. I'm supposed to use LIB_SUFFIX and maintain the patch forever? -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
2009/10/13 Andreas Schneider
On Friday 09 October 2009 00:08:56 Cristian Morales Vega wrote:
Trying to package OpenCV 2.0 I found this line in the CMakeLists.txt file:
set(CMAKE_LIB_DIRS_CONFIGCMAKE "${CMAKE_INSTALL_PREFIX}/lib")
cmake -DCMAKE_LIB_DIRS_CONFIGCMAKE:PATH=%{_libdir}
That happens me for trying to oversimplify :-p The thing is there are a lot of places that needed to be patched. I ended submitting this patch: http://sourceforge.net/tracker/download.php?group_id=22870&atid=376679&file_id=346061&aid=2876292, that uses LIB_SUFFIX. The thing is autotools have the standard "libdir" variable that is used in every project. cmake -DCMAKE_LIB_DIRS_CONFIGCMAKE:PATH=%{_libdir} works in this specific case, but I would expect a standard variable that would allow me to do "cmake -D<VARIABLE>:PATH=%{_libdir}" knowing that it will work in *any* project that uses CMake. But after searching a lot I'm pretty sure there isn't such a variable :-( -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-packaging+help@opensuse.org
participants (2)
-
Andreas Schneider
-
Cristian Morales Vega