CMakePackage: remove -DBUILD_TESTING flag (#37967)
This commit is contained in:
		@@ -274,7 +274,6 @@ def std_args(pkg, generator=None):
 | 
				
			|||||||
            generator,
 | 
					            generator,
 | 
				
			||||||
            define("CMAKE_INSTALL_PREFIX", pathlib.Path(pkg.prefix).as_posix()),
 | 
					            define("CMAKE_INSTALL_PREFIX", pathlib.Path(pkg.prefix).as_posix()),
 | 
				
			||||||
            define("CMAKE_BUILD_TYPE", build_type),
 | 
					            define("CMAKE_BUILD_TYPE", build_type),
 | 
				
			||||||
            define("BUILD_TESTING", pkg.run_tests),
 | 
					 | 
				
			||||||
        ]
 | 
					        ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        # CMAKE_INTERPROCEDURAL_OPTIMIZATION only exists for CMake >= 3.9
 | 
					        # CMAKE_INTERPROCEDURAL_OPTIMIZATION only exists for CMake >= 3.9
 | 
				
			||||||
@@ -451,7 +450,6 @@ def cmake_args(self):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            * CMAKE_INSTALL_PREFIX
 | 
					            * CMAKE_INSTALL_PREFIX
 | 
				
			||||||
            * CMAKE_BUILD_TYPE
 | 
					            * CMAKE_BUILD_TYPE
 | 
				
			||||||
            * BUILD_TESTING
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        which will be set automatically.
 | 
					        which will be set automatically.
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user