cmake: make the traceparser permissive by default (fixes #7501)

pull/7568/head
Daniel Mensinger 4 years ago committed by Jussi Pakkanen
parent 2e4a2bb373
commit 02ea08ba66
  1. 2
      mesonbuild/cmake/traceparser.py
  2. 3
      test cases/linuxlike/13 cmake dependency/cmake/FindSomethingLikeZLIB.cmake

@ -74,7 +74,7 @@ class CMakeGeneratorTarget(CMakeTarget):
self.working_dir = None # type: T.Optional[str]
class CMakeTraceParser:
def __init__(self, cmake_version: str, build_dir: str, permissive: bool = False):
def __init__(self, cmake_version: str, build_dir: str, permissive: bool = True):
self.vars = {} # type: T.Dict[str, T.List[str]]
self.targets = {} # type: T.Dict[str, CMakeTarget]

@ -4,6 +4,9 @@ include(CMakeFindDependencyMacro)
include(CheckCXXSourceRuns)
include(CheckCSourceRuns)
# Do something stupid (see https://github.com/mesonbuild/meson/issues/7501)
set("")
check_cxx_source_runs(
"
#include <iostream>

Loading…
Cancel
Save