CMAKE_DO_TRY_COMPILE is no longer used
This commit is contained in:
parent
ae3eff35b4
commit
a0b0d23f0c
|
@ -245,10 +245,8 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
|
||||||
CMAKE_TRY_COMPILE_OSX_ARCHITECTURE first to i386 and then to ppc to
|
CMAKE_TRY_COMPILE_OSX_ARCHITECTURE first to i386 and then to ppc to
|
||||||
have the tests run for each specific architecture. Since
|
have the tests run for each specific architecture. Since
|
||||||
cmLocalGenerator doesn't allow building for "the other"
|
cmLocalGenerator doesn't allow building for "the other"
|
||||||
architecture only via CMAKE_OSX_ARCHITECTURES,use to CMAKE_DO_TRY_COMPILE
|
architecture only via CMAKE_OSX_ARCHITECTURES.
|
||||||
to enforce it for this case here.
|
|
||||||
*/
|
*/
|
||||||
cmakeFlags.push_back("-DCMAKE_DO_TRY_COMPILE=TRUE");
|
|
||||||
if(this->Makefile->GetDefinition("CMAKE_TRY_COMPILE_OSX_ARCHITECTURES")!=0)
|
if(this->Makefile->GetDefinition("CMAKE_TRY_COMPILE_OSX_ARCHITECTURES")!=0)
|
||||||
{
|
{
|
||||||
std::string flag="-DCMAKE_OSX_ARCHITECTURES=";
|
std::string flag="-DCMAKE_OSX_ARCHITECTURES=";
|
||||||
|
|
Loading…
Reference in New Issue