Files
CMake/Tests/RunCMake/ExternalProject/InvalidEnvModification.cmake
Evan Wilde e301cbffcc ExternalProject: Set environment variables
Add the ability to modify the environment of the various steps running
as part of an external project build. This specifically adds the ability
to set them on the configure , build , install, and test steps, as well
as exposing the `ENVIRONMENT_MODIFICATION` keyword arguments to
`ExternalProject_Add_Step`, allowing customization of the environment of
custom steps.

The values of the environment variable respect the `LIST_SEPARATOR`.

Fixes: #26963
2025-07-22 13:13:23 -04:00

13 lines
287 B
CMake

include(ExternalProject)
ExternalProject_Add(EnvModification
SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/EnvVars"
DOWNLOAD_COMMAND ""
UPDATE_COMMAND ""
PATCH_COMMAND ""
LIST_SEPARATOR :
CONFIGURE_ENVIRONMENT_MODIFICATION
HI
INVALID=SETTING
INVALID=OP1:operation:10)