Remove variable from cmake.py (#48824)
* Remove variable from cmake.py #48775 left a dangling variable that was not caught in CI but by the eyes of @haampie. Restructure variable to local method. * [@spackbot] updating style on behalf of psakievich * Update cmake.py * Update lib/spack/spack/build_systems/cmake.py * Update lib/spack/spack/build_systems/cmake.py --------- Co-authored-by: psakievich <psakievich@users.noreply.github.com>
This commit is contained in:
		@@ -458,18 +458,17 @@ def cmake(
 | 
				
			|||||||
    ) -> None:
 | 
					    ) -> None:
 | 
				
			||||||
        """Runs ``cmake`` in the build directory"""
 | 
					        """Runs ``cmake`` in the build directory"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        if spec.is_develop:
 | 
				
			||||||
            # skip cmake phase if it is an incremental develop build
 | 
					            # skip cmake phase if it is an incremental develop build
 | 
				
			||||||
        # These are the files that will re-run CMake that are generated from a successful
 | 
					
 | 
				
			||||||
        # configure step
 | 
					            # Determine the files that will re-run CMake that are generated from a successful
 | 
				
			||||||
 | 
					            # configure step based on state
 | 
				
			||||||
            primary_generator = _extract_primary_generator(self.generator)
 | 
					            primary_generator = _extract_primary_generator(self.generator)
 | 
				
			||||||
        if primary_generator == "Unix Makefiles":
 | 
					 | 
				
			||||||
            configure_artifact = "Makefile"
 | 
					            configure_artifact = "Makefile"
 | 
				
			||||||
        elif primary_generator == "Ninja":
 | 
					            if primary_generator == "Ninja":
 | 
				
			||||||
                configure_artifact = "ninja.build"
 | 
					                configure_artifact = "ninja.build"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        if spec.is_develop and os.path.isfile(
 | 
					            if os.path.isfile(os.path.join(self.build_directory, configure_artifact)):
 | 
				
			||||||
            os.path.join(self.build_directory, configure_artifact)
 | 
					 | 
				
			||||||
        ):
 | 
					 | 
				
			||||||
                return
 | 
					                return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        options = self.std_cmake_args
 | 
					        options = self.std_cmake_args
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user