if (HAS_NO_UNUSED_PARAMETER)
set(_scanner_cpp_compiler_flags "${_scanner_cpp_compiler_flags} -Wno-unused-parameter")
endif()
- check_cxx_compiler_flag(-Wno-deprecated-register HAS_NO_DEPRECATED_REGISTER)
- if (HAS_NO_DEPRECATED_REGISTER)
- set(_scanner_cpp_compiler_flags "${_scanner_cpp_compiler_flags} -Wno-deprecated-register")
- else()
- check_cxx_compiler_flag(-Wno-deprecated HAS_NO_DEPRECATED)
- if (HAS_NO_DEPRECATED)
- set(_scanner_cpp_compiler_flags "${_scanner_cpp_compiler_flags} -Wno-deprecated")
- endif()
- endif()
set_source_files_properties(selection/scanner.cpp PROPERTIES COMPILE_FLAGS "${_scanner_cpp_compiler_flags}")
+gmx_setup_tng_for_libgromacs()
+
target_link_libraries(libgromacs
+ PRIVATE
${EXTRAE_LIBRARIES}
${GMX_EXTRA_LIBRARIES}
- ${TNG_IO_LIBRARIES}
+ ${GMX_COMMON_LIBRARIES}
${FFT_LIBRARIES} ${LINEAR_ALGEBRA_LIBRARIES}
- ${XML_LIBRARIES}
${LMFIT_LIBRARIES_TO_LINK}
${THREAD_LIB} ${GMX_SHARED_LINKER_FLAGS} ${OPENCL_LIBRARIES}
- ${GMX_STDLIB_LIBRARIES})
+ ${GMX_STDLIB_LIBRARIES}
+ PUBLIC
+ ${GMX_PUBLIC_LIBRARIES}
+ )
set_target_properties(libgromacs PROPERTIES
OUTPUT_NAME "gromacs${GMX_LIBS_SUFFIX}"
SOVERSION ${LIBRARY_SOVERSION_MAJOR}
// when we have return statements followed by break. Instead, we add breaks
// manually.
#define YY_BREAK
++
++#ifdef __INTEL_COMPILER
++// Ignore unused variables in generated code.
++#pragma warning(disable:593)
++#endif
#define YY_NO_UNISTD_H 1
- #line 564 "scanner.cpp"
-#line 577 "scanner.cpp"
++#line 582 "scanner.cpp"
#define INITIAL 0
#define matchof 1
*/
YY_DECL
{
- register yy_state_type yy_current_state;
- register char *yy_cp, *yy_bp;
- register int yy_act;
+ yy_state_type yy_current_state;
+ char *yy_cp, *yy_bp;
+ int yy_act;
struct yyguts_t * yyg = (struct yyguts_t*)yyscanner;
- #line 98 "scanner.l"
+ if ( !yyg->yy_init )
+ {
+ yyg->yy_init = 1;
+
+ #ifdef YY_USER_INIT
+ YY_USER_INIT;
+ #endif
+
+ if ( ! yyg->yy_start )
+ yyg->yy_start = 1; /* first start state */
+
+ if ( ! yyin )
+ yyin = stdin;
+
+ if ( ! yyout )
+ yyout = stdout;
+
+ if ( ! YY_CURRENT_BUFFER ) {
+ _gmx_sel_yyensure_buffer_stack (yyscanner);
+ YY_CURRENT_BUFFER_LVALUE =
+ _gmx_sel_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
+ }
+
+ _gmx_sel_yy_load_buffer_state(yyscanner );
+ }
+
+ {
-#line 99 "scanner.l"
++#line 104 "scanner.l"
}
- #line 826 "scanner.cpp"
-
- if ( !yyg->yy_init )
- {
- yyg->yy_init = 1;
-
- #ifdef YY_USER_INIT
- YY_USER_INIT;
- #endif
-
- if ( ! yyg->yy_start )
- yyg->yy_start = 1; /* first start state */
-
- if ( ! yyin )
- yyin = stdin;
-
- if ( ! yyout )
- yyout = stdout;
-#line 875 "scanner.cpp"
++#line 880 "scanner.cpp"
- if ( ! YY_CURRENT_BUFFER ) {
- _gmx_sel_yyensure_buffer_stack (yyscanner);
- YY_CURRENT_BUFFER_LVALUE =
- _gmx_sel_yy_create_buffer(yyin,YY_BUF_SIZE ,yyscanner);
- }
-
- _gmx_sel_yy_load_buffer_state(yyscanner );
- }
-
- while ( 1 ) /* loops until end-of-file is reached */
+ while ( /*CONSTCOND*/1 ) /* loops until end-of-file is reached */
{
yy_cp = yyg->yy_c_buf_p;
case 1:
YY_RULE_SETUP
- #line 131 "scanner.l"
-#line 132 "scanner.l"
++#line 137 "scanner.l"
break;
YY_BREAK
case 2:
YY_RULE_SETUP
- #line 132 "scanner.l"
-#line 133 "scanner.l"
++#line 138 "scanner.l"
{ yylval->i = strtol(yytext, NULL, 10); ADD_TOKEN; return TOK_INT; }
YY_BREAK
case 3:
YY_RULE_SETUP
- #line 133 "scanner.l"
-#line 134 "scanner.l"
++#line 139 "scanner.l"
{ yylval->r = strtod(yytext, NULL); ADD_TOKEN; return TOK_REAL; }
YY_BREAK
case 4:
YY_RULE_SETUP
- #line 134 "scanner.l"
-#line 135 "scanner.l"
++#line 140 "scanner.l"
{ yylval->str = gmx_strndup(yytext+1, yyleng-2); ADD_TOKEN; return STR; }
YY_BREAK
case 5:
/* rule 5 can match eol */
YY_RULE_SETUP
- #line 136 "scanner.l"
-#line 137 "scanner.l"
++#line 142 "scanner.l"
{ _gmx_sel_lexer_add_token(yylloc, " ", 1, state); break; }
YY_BREAK
case 6:
/* rule 6 can match eol */
YY_RULE_SETUP
- #line 137 "scanner.l"
-#line 138 "scanner.l"
++#line 143 "scanner.l"
{
if (yytext[0] == ';' || state->statusWriter != NULL)
{
}
YY_BREAK
case YY_STATE_EOF(cmdstart):
- #line 151 "scanner.l"
-#line 152 "scanner.l"
++#line 157 "scanner.l"
{ state->bCmdStart = true; yyterminate(); }
YY_BREAK
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(matchof):
case YY_STATE_EOF(matchbool):
- #line 152 "scanner.l"
-#line 153 "scanner.l"
++#line 158 "scanner.l"
{ state->bCmdStart = true; return CMD_SEP; }
YY_BREAK
case 7:
YY_RULE_SETUP
- #line 155 "scanner.l"
-#line 156 "scanner.l"
++#line 161 "scanner.l"
{ ADD_TOKEN; yylval->i = 1; return TOK_INT; }
YY_BREAK
case 8:
YY_RULE_SETUP
- #line 156 "scanner.l"
-#line 157 "scanner.l"
++#line 162 "scanner.l"
{ ADD_TOKEN; yylval->i = 0; return TOK_INT; }
YY_BREAK
case 9:
YY_RULE_SETUP
- #line 158 "scanner.l"
-#line 159 "scanner.l"
++#line 164 "scanner.l"
{ ADD_TOKEN; return GROUP; }
YY_BREAK
case 10:
YY_RULE_SETUP
- #line 159 "scanner.l"
-#line 160 "scanner.l"
++#line 165 "scanner.l"
{ ADD_TOKEN; return TO; }
YY_BREAK
case 11:
YY_RULE_SETUP
- #line 160 "scanner.l"
-#line 161 "scanner.l"
++#line 166 "scanner.l"
{ ADD_TOKEN; BEGIN(0); return OF; }
YY_BREAK
case 12:
YY_RULE_SETUP
- #line 161 "scanner.l"
-#line 162 "scanner.l"
++#line 167 "scanner.l"
{ ADD_TOKEN; return AND; }
YY_BREAK
case 13:
YY_RULE_SETUP
- #line 162 "scanner.l"
-#line 163 "scanner.l"
++#line 168 "scanner.l"
{ ADD_TOKEN; return OR; }
YY_BREAK
case 14:
YY_RULE_SETUP
- #line 163 "scanner.l"
-#line 164 "scanner.l"
++#line 169 "scanner.l"
{ ADD_TOKEN; return XOR; }
YY_BREAK
case 15:
YY_RULE_SETUP
- #line 164 "scanner.l"
-#line 165 "scanner.l"
++#line 170 "scanner.l"
{ ADD_TOKEN; return NOT; }
YY_BREAK
case 16:
YY_RULE_SETUP
- #line 165 "scanner.l"
-#line 166 "scanner.l"
++#line 171 "scanner.l"
{ yylval->str = gmx_strndup(yytext, yyleng); ADD_TOKEN; return CMP_OP; }
YY_BREAK
case 17:
YY_RULE_SETUP
- #line 167 "scanner.l"
-#line 168 "scanner.l"
++#line 173 "scanner.l"
{ return _gmx_sel_lexer_process_identifier(yylval, yylloc, yytext, yyleng, state); }
YY_BREAK
case 18:
/* rule 18 can match eol */
YY_RULE_SETUP
- #line 169 "scanner.l"
-#line 170 "scanner.l"
++#line 175 "scanner.l"
{ _gmx_sel_lexer_add_token(yylloc, " ", 1, state); break; }
YY_BREAK
case 19:
YY_RULE_SETUP
- #line 170 "scanner.l"
-#line 171 "scanner.l"
++#line 176 "scanner.l"
{ yylval->str = gmx_strndup(yytext, yyleng); ADD_TOKEN; return STR; }
YY_BREAK
case 20:
YY_RULE_SETUP
- #line 171 "scanner.l"
-#line 172 "scanner.l"
++#line 177 "scanner.l"
{ ADD_TOKEN; return yytext[0]; }
YY_BREAK
case 21:
YY_RULE_SETUP
- #line 172 "scanner.l"
-#line 173 "scanner.l"
++#line 178 "scanner.l"
YY_FATAL_ERROR( "flex scanner jammed" );
YY_BREAK
- #line 1037 "scanner.cpp"
-#line 1060 "scanner.cpp"
++#line 1065 "scanner.cpp"
case YY_END_OF_BUFFER:
{
#define YYTABLES_NAME "yytables"
- #line 172 "scanner.l"
-#line 173 "scanner.l"
++#line 178 "scanner.l"