summaryrefslogtreecommitdiffstats
path: root/Modules/FindosgSim.cmake
Commit message (Expand)AuthorAgeFilesLines
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+3
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-24/+28
* Find* (and some other): use ${CMAKE_CURRENT_LIST_DIR} in include()Rolf Eike Beer2012-11-041-1/+1
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-4/+4
* Modules: Include builtin FindPackageHandleStandardArgs directlyBrad King2011-01-201-1/+1
* Remove usage of CMAKE_CURRENT_LIST_DIR now that we have CMP0017Alex Neundorf2011-01-041-1/+1
* Use absolute path to FindPackageHandleStandardArgs.cmake everywhereAlex Neundorf2010-09-281-1/+1
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
* Convert CMake find-modules to BSD LicenseBrad King2009-09-281-0/+13
* BUG: The QUIET and REQUIRED find attributes on each Findosg* module were notPhilip Lowman2009-01-301-1/+1
* BUG: Fixed Issue #7331 Bugs in Findosg*.cmake. Also added OPENTHREADS_LIBRAR...Philip Lowman2009-01-191-45/+13
* ENH: Cleanup Find* modules with new HINTS featureBrad King2008-06-091-14/+3
* BUG: Remove references to CMAKE_PREFIX_PATH variable. It should not be refer...Brad King2008-01-161-11/+2
* BUG: Fixed modules to set FOO_FOUND when both headers and libraries are found.Eric Wing2007-12-211-0/+90
t">::SetLineFile(long line, const char* file) { this->FileLine = line; this->FileName = file; } int cmExprParserHelper::ParseString(const char* str, int verb) { if ( !str) { return 0; } //printf("Do some parsing: %s\n", str); this->Verbose = verb; this->InputBuffer = str; this->InputBufferPos = 0; this->CurrentLine = 0; this->Result = 0; yyscan_t yyscanner; cmExpr_yylex_init(&yyscanner); cmExpr_yyset_extra(this, yyscanner); int res = cmExpr_yyparse(yyscanner); cmExpr_yylex_destroy(yyscanner); if ( res != 0 ) { //str << "CAL_Parser returned: " << res << std::endl; //std::cerr << "When parsing: [" << str << "]" << std::endl; return 0; } this->CleanupParser(); if ( Verbose ) { std::cerr << "Expanding [" << str << "] produced: [" << this->Result << "]" << std::endl; } return 1; } void cmExprParserHelper::CleanupParser() { } int cmExprParserHelper::LexInput(char* buf, int maxlen) { //std::cout << "JPLexInput "; //std::cout.write(buf, maxlen); //std::cout << std::endl; if ( maxlen < 1 ) { return 0; } if ( this->InputBufferPos < this->InputBuffer.size() ) { buf[0] = this->InputBuffer[ this->InputBufferPos++ ]; if ( buf[0] == '\n' ) { this->CurrentLine ++; } return(1); } else { buf[0] = '\n'; return( 0 ); } } void cmExprParserHelper::Error(const char* str) { unsigned long pos = static_cast<unsigned long>(this->InputBufferPos); cmOStringStream ostr; ostr << str << " (" << pos << ")"; this->ErrorString = ostr.str(); } void cmExprParserHelper::SetResult(int value) { this->Result = value; }