Revision: 69952
          http://sourceforge.net/p/brlcad/code/69952
Author:   starseeker
Date:     2017-07-15 23:35:07 +0000 (Sat, 15 Jul 2017)
Log Message:
-----------
Never mind the return value, until it becomes clear it matters (probably need a 
better input string for testing) - for now, if we get through the run, good 
enough...

Modified Paths:
--------------
    brlcad/trunk/misc/CMake/FindLEX.cmake

Modified: brlcad/trunk/misc/CMake/FindLEX.cmake
===================================================================
--- brlcad/trunk/misc/CMake/FindLEX.cmake       2017-07-15 23:20:35 UTC (rev 
69951)
+++ brlcad/trunk/misc/CMake/FindLEX.cmake       2017-07-15 23:35:07 UTC (rev 
69952)
@@ -86,12 +86,11 @@
 extern int yyparse();
 int main (void)
 {
-  int ret;
   char test_str[] = \"BRL-CAD\";
   YY_BUFFER_STATE buffer = yy_scan_string(test_str);
-  ret = !yylex();
+  yylex();
   yy_delete_buffer(buffer);
-  return ret;
+  return 0;
 }
 
 ")
@@ -110,8 +109,10 @@
     if(YYTEXT_POINTER_COMPILED AND NOT YYTEXT_POINTER_RAN)
       set(YYTEXT_POINTER 1 PARENT_SCOPE)
       if(CONFIG_H_FILE)
-       CONFIG_H_APPEND(${CMAKE_CURRENT_PROJECT} "#cmakedefine YYTEXT_POINTER 
1\n")
+       CONFIG_H_APPEND(${CMAKE_CURRENT_PROJECT} "#define YYTEXT_POINTER 1\n")
       endif(CONFIG_H_FILE)
+    else(YYTEXT_POINTER_COMPILED AND NOT YYTEXT_POINTER_RAN)
+      set(YYTEXT_POINTER 0 PARENT_SCOPE)
     endif(YYTEXT_POINTER_COMPILED AND NOT YYTEXT_POINTER_RAN)
 
     file(REMOVE "${CMAKE_BINARY_DIR}/CMakeTmp/lex_test.c")

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Source Commits mailing list
brlcad-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to