Skip to content

Consider CMAKE_DISABLE_SOURCE_CHANGES #4174

Open
@malytomas

Description

@malytomas

I get cmake error:

-- WAMR version: 2.2.0
CMake Error at externals/cage/externals/wamr/wamr/build-scripts/version.cmake:16 (configure_file):
  configure_file attempted to configure a file:
  F:/personal/cage-examples/externals/cage/externals/wamr/wamr/core/version.h
  into a source directory.
Call Stack (most recent call first):
  externals/cage/externals/wamr/wamr/build-scripts/config_common.cmake:135 (include)
  externals/cage/externals/wamr/wamr/build-scripts/runtime_lib.cmake:179 (include)
  externals/cage/externals/wamr/CMakeLists.txt:44 (include)

When I use CMAKE_DISABLE_SOURCE_CHANGES=ON.

I suggest using this variable as it prevents cmake from accidentally overriding files in the source folders. The output file should be put in the build directory instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions