[Openvas-commits] r12085 - in trunk/openvas-libraries: . nasl

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Nov 10 09:41:36 CET 2011


Author: mwiegand
Date: 2011-11-10 09:41:34 +0100 (Thu, 10 Nov 2011)
New Revision: 12085

Modified:
   trunk/openvas-libraries/ChangeLog
   trunk/openvas-libraries/nasl/CMakeLists.txt
Log:
* nasl/CMakeLists.txt: Adjust bison call in custom command to enable
  out-of-source builds.


Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog	2011-11-10 07:38:16 UTC (rev 12084)
+++ trunk/openvas-libraries/ChangeLog	2011-11-10 08:41:34 UTC (rev 12085)
@@ -1,5 +1,10 @@
 2011-11-10  Michael Wiegand <michael.wiegand at greenbone.net>
 
+	* nasl/CMakeLists.txt: Adjust bison call in custom command to enable
+	out-of-source builds.
+
+2011-11-10  Michael Wiegand <michael.wiegand at greenbone.net>
+
 	* misc/network.c (open_SSL_connection): Call
 	gnutls_transport_set_lowat only for gnutls < 2.12.0 since it is
 	deprecated in newer versions. Patch suggested by Stephan Kleine.

Modified: trunk/openvas-libraries/nasl/CMakeLists.txt
===================================================================
--- trunk/openvas-libraries/nasl/CMakeLists.txt	2011-11-10 07:38:16 UTC (rev 12084)
+++ trunk/openvas-libraries/nasl/CMakeLists.txt	2011-11-10 08:41:34 UTC (rev 12085)
@@ -51,8 +51,9 @@
 ## that and that the user is not warned if bison is not installed
 add_custom_command (
    COMMAND bison
-   ARGS -d -v -t -p nasl nasl_grammar.y
-   DEPENDS nasl_grammar.y
+   ARGS -d -v -t -p nasl ${CMAKE_CURRENT_SOURCE_DIR}/nasl_grammar.y
+   WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
+   DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/nasl_grammar.y
    OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/nasl_grammar.tab.c
    OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/nasl_grammar.tab.h
    OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/nasl_grammar.output)



More information about the Openvas-commits mailing list