To set the ASAN_OPTIONS environment variable in CMake, you can use the configure_file() command in your CMakeLists.txt file. First, define the desired options for AddressSanitizer in a separate configuration file (e.g., asan_options.txt).In this file, specify the options in the format: ASAN_OPTIONS=option1=value1:option2=value2:...Then, in your CMakeLists.txt file, use the configure_file() command to copy the contents of asan_options.txt to a new file (e.g., asan_options.