[pcre-dev] [Bug 2023] New: CMake error: option called with …

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Subject: [pcre-dev] [Bug 2023] New: CMake error: option called with incorrect number if arguments
https://bugs.exim.org/show_bug.cgi?id=2023

            Bug ID: 2023
           Summary: CMake error: option called with incorrect number if
                    arguments
           Product: PCRE
           Version: 8.40
          Hardware: All
                OS: Windows
            Status: NEW
          Severity: bug
          Priority: medium
         Component: Code
          Assignee: ph10@???
          Reporter: milan@???
                CC: pcre-dev@???


Trying to integrate PCRE-8.40, I stumbled across the following problem.

CMake Error at 3rdparty/pcre-8.40/CMakeLists.txt:194 (OPTION):
option called with incorrect number of arguments: PCRE_STATIC_RUNTIME OFF
CACHE BOOL ON=Compile against the static runtime (/MT). OFF


This only happens with MSVC, at the following snippet in CMakeLists.txt (line
194):

IF(MSVC)
  OPTION(PCRE_STATIC_RUNTIME OFF CACHE BOOL
    "ON=Compile against the static runtime (/MT)."
    OFF)
  OPTION(INSTALL_MSVC_PDB
         "ON=Install .pdb files built by MSVC, if generated"
         OFF)
ENDIF(MSVC)


The OPTION call for PCRE_STATIC_RUNTIME takes too many arguments. See the
option call for INSTALL_MSVC_PDB for the correct usage.

Thanks,
Milan

--
You are receiving this mail because:
You are on the CC list for the bug.