diff options
author | Geoff Viola <geoffrey.viola@asirobots.com> | 2016-03-21 11:00:35 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-03-21 14:35:01 (GMT) |
commit | bf3e76d2146485e541ebeed891a8905946b96c9e (patch) | |
tree | 0bbc5fffb4e8b4985709b6332c4935bf44b3c5b4 /Source | |
parent | cd992170db7a85f00d4ad38f78f0b38c33f83d1f (diff) | |
download | CMake-bf3e76d2146485e541ebeed891a8905946b96c9e.zip CMake-bf3e76d2146485e541ebeed891a8905946b96c9e.tar.gz CMake-bf3e76d2146485e541ebeed891a8905946b96c9e.tar.bz2 |
GHS: Fix try_compile (#15975)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGhsMultiTargetGenerator.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmGhsMultiTargetGenerator.cxx b/Source/cmGhsMultiTargetGenerator.cxx index 18e140e..c5813ba 100644 --- a/Source/cmGhsMultiTargetGenerator.cxx +++ b/Source/cmGhsMultiTargetGenerator.cxx @@ -217,8 +217,11 @@ void cmGhsMultiTargetGenerator::WriteTypeSpecifics(const std::string &config, if (this->GeneratorTarget->GetType() == cmState::STATIC_LIBRARY) { + std::string const static_library_suffix = + this->Makefile->GetSafeDefinition("CMAKE_STATIC_LIBRARY_SUFFIX"); *this->GetFolderBuildStreams() << " -o \"" - << outputDir << outputFilename << ".a\"" + << outputDir << outputFilename + << static_library_suffix << "\"" << std::endl; } else if (this->GeneratorTarget->GetType() == cmState::EXECUTABLE) @@ -238,8 +241,11 @@ void cmGhsMultiTargetGenerator::WriteTypeSpecifics(const std::string &config, } else { + std::string const executable_suffix = + this->Makefile->GetSafeDefinition("CMAKE_EXECUTABLE_SUFFIX"); *this->GetFolderBuildStreams() << " -o \"" - << outputDir << outputFilename << ".as\"" + << outputDir << outputFilename + << executable_suffix << "\"" << std::endl; } } |