* Stefan Schwarz [14. Jul 2012]: > Hi, > > when building openvas from svn i get following error when running cmake: > cd openvas-libraries/ && cmake -DBUILD_WITH_LDAP=ON . && make && > sudo make install > -- Configuring the Libraries... > -- Install prefix: /usr/local > [] > -- Configuring done > CMake Error at nasl/CMakeLists.txt:116 (add_executable): > Target "openvas-nasl" links to item "-lgpgme -lgpg-error " which has > leading or trailing whitespace. This is now an error according to policy > CMP0004. > > Maybe this was introduced with svn rev 13683: > r13683 | mwiegand | 2012-07-05 13:31:09 +0200 (Do, 05. Jul 2012) > * nasl/CMakeLists.txt: Ensure that compilation with modern > gccs works by moving linker flags from LINK_FLAGS to > target_link_libraries. > > I'm currently running ubuntu 10.04 LTS (gcc 4.4.3). I'm not really > experienced with cmake so any hints are appreciated.
As Michael Meyer suggested, this was an error related to the quoting of the LDFLAGS and was indeed introduced by me. It should be fixed in SNV r13734 now, could you test again when you get a chance? Regards, Michael -- Michael Wiegand | Greenbone Networks GmbH | http://www.greenbone.net/ Neuer Graben 17, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460 Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner _______________________________________________ Openvas-discuss mailing list [email protected] http://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
