Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.6.26
    • Component/s: Build process
    • Labels:
      None

      Description

      If -DCENTOS_6_BOOST is set to ON then:

      _USE_BOOST_REGEX is not set
      and
      _USE_C11_REGEX is not set
      and then in eclregex.cpp we have:

      #if defined(_USE_BOOST_REGEX) || defined(_USE_C11_REGEX)
      ...
      #else // _USE_BOOST_REGEX or _USE_C11_REGEX not set
      ECLRTL_API ICompiledStrRegExpr * rtlCreateCompiledStrRegExpr(const char * regExpr, bool isCaseSensitive)
      {
          rtlFail(0, "Boost/C++11 regex disabled");
      }
      #endif // _USE_BOOST_REGEX or _USE_C11_REGEX
      

      Here is logic:

        option(USE_BOOST_REGEX "Configure use of boost regex" ON)
        option(CENTOS_6_BOOST "Supply regex library on CentOS 6" OFF)
        # USE_C11_REGEX is only checked if USE_BOOST_REGEX is OFF
        # to disable REGEX altogether turn both off
        option(USE_C11_REGEX "Configure use of c++11 std::regex" ON)
      
            if(USE_BOOST_REGEX)
              if(CENTOS_6_BOOST)
                include(${CMAKE_MODULE_PATH}/buildBOOST_REGEX.cmake)
              else()
                find_package(BOOST_REGEX)
                if (BOOST_REGEX_FOUND)
                  message(STATUS "BOOST_REGEX enabled")
                  add_definitions (-D_USE_BOOST_REGEX)
                else()
                  message(FATAL_ERROR "BOOST_REGEX requested but package not found")
                endif()
              endif()
            else(USE_BOOST_REGEX)
              if (USE_C11_REGEX)
                if ((NOT CMAKE_COMPILER_IS_GNUCC) OR (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 4.9.0))
                  message(STATUS "C11_REGEX enabled")
                  add_definitions (-D_USE_C11_REGEX)
                else()
                  message(STATUS "C11_REGEX requested but not supported on this platform")
                endif()
              else(USE_C11_REGEX)
                message(STATUS "NO REGEX requested")
              endif(USE_C11_REGEX)
            endif(USE_BOOST_REGEX)
      

        Attachments

          Activity

            People

            • Assignee:
              mckellyln Mark Kelly
              Reporter:
              mckellyln Mark Kelly
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: