Changeset 9e177ec in tol


Ignore:
Timestamp:
Sep 22, 2015, 9:21:48 AM (11 years ago)
Author:
Jorge Pérez <josp.jorge@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
634425b
Parents:
41890bb
Message:

#refs 1866, compilamos con cint solo si está disponible

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@6864 be4846ae-f051-483a-831f-b64e7d08527f

Location:
tol
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tol/CMakeLists.txt

    r41890bb r9e177ec  
    7474  if( CMAKE_BUILD_TYPE MATCHES Debug )
    7575    # -fstack-protector-all -Wstack-protector -fno-omit-frame-pointer
    76     set_property(TARGET ${name} PROPERTY COMPILE_FLAGS "-fPIC -Wall")
     76    # versiones recientes de gcc tienen estas opciones que pueden ser utiles: -fsanitize=address -fsanitize=alignment
     77    set_property(TARGET ${name} PROPERTY COMPILE_FLAGS "-fPIC -mno-align-double -Wall")
    7778  else( )
    78     set_property(TARGET ${name} PROPERTY COMPILE_FLAGS "-fPIC")
     79    set_property(TARGET ${name} PROPERTY COMPILE_FLAGS "-O2 -fPIC -mno-align-double")
    7980  endif( )
    8081  if( TOL_SUBLIBRARIES STREQUAL "" )
    … …  
    317318# CINT configuration
    318319find_package( CintHeaders )
    319 if( CINT_HEADERS_FOUND AND TRACE_COMPONENTS_FOUND )
    320   message( "CINT_INCLUDE_DIR = ${CINT_INCLUDE_DIR}" )
    321 
    322 endif( )
     320if( CINT_HEADERS_FOUND )
     321  if( TRACE_COMPONENTS_FOUND )
     322    message( "CINT_INCLUDE_DIR = ${CINT_INCLUDE_DIR}" )
     323  endif( )
     324  set( HAVE_CINT 1 CACHE INTERNAL "" )
     325else( )
     326  unset( HAVE_CINT CACHE )
     327endif( )
     328
    323329# ZIPARCHIVE configuration
    324330find_package( ZipArchive REQUIRED )
    … …  
    391397add_executable( tolcon tol.cpp )
    392398target_link_libraries( tolcon tol )
     399
     400#add_subdirectory( zippie_src )
    393401
    394402#message( STATUS "ALL_HEADERS_LIST ${ALL_HEADERS_LIST}" )
  • tol/btol/bgrammar/CMakeLists.txt

    r41890bb r9e177ec  
    77
    88target_include_directories( bgrammar PRIVATE
    9   ${PROJECT_SOURCE_DIR}
    10   ${CINT_INCLUDE_DIR} )
     9  ${PROJECT_SOURCE_DIR} )
     10if( CINT_HEADERS_FOUND )
     11  target_include_directories( bgrammar PRIVATE
     12    ${CINT_INCLUDE_DIR} )
     13endif( )
  • tol/btol/bgrammar/spfuninst.cpp

    r41890bb r9e177ec  
    5252#include <tol/tol_bsymboltable.h>
    5353#include <tol/tol_bnameblock.h>
     54#if HAVE_CINT
    5455#include "contrib/cint/tolCint.h"
     56#endif
    5557
    5658
    … …  
    22912293
    22922294
     2295#if HAVE_CINT
    22932296//--------------------------------------------------------------------
    22942297static BSyntaxObject* EvCint_export_to_tol(BGrammar* gra, const List* tre, BBool left)
    … …  
    23742377  return(result);
    23752378}
     2379#endif
    23762380
    23772381//--------------------------------------------------------------------
    … …  
    29212925     EvAvoidErrNonDecAct);
    29222926
    2923  BText cint_url_link();
     2927 #if HAVE_CINT
     2928  BText cint_url_link();
    29242929
    29252930  AddInstance("Cint.export_to_tol",
    … …  
    29422947     cint_url_link(),
    29432948     EvCint_export_to_tol);
    2944 
     2949#endif
    29452950
    29462951  return(true);
Note: See TracChangeset for help on using the changeset viewer.