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