summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-17 14:25:04 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-08-17 14:25:04 (GMT)
commita38ea312c02eec6e4ee61015f70920999bf79ff9 (patch)
tree0e5b9188bd5cc21f2fc0ee2a0c6601fe3504470a /Source
parentbc9103ed5b326b480140b43934bb762f9c9ec5f5 (diff)
parent7f0b83e0185f4e131110a61d898cec4a96bd9a7d (diff)
downloadCMake-a38ea312c02eec6e4ee61015f70920999bf79ff9.zip
CMake-a38ea312c02eec6e4ee61015f70920999bf79ff9.tar.gz
CMake-a38ea312c02eec6e4ee61015f70920999bf79ff9.tar.bz2
Merge topic 'propagate-link-search-to-try_compile'
7f0b83e0 try_compile: Update documentation for other propagated variables fb77c2c5 try_compile: Propogate the CMAKE_LINK_SEARCH_ variables
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCoreTryCompile.cxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index ffb349e..9411555 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -470,6 +470,16 @@ int cmCoreTryCompile::TryCompileCode(std::vector<std::string> const& argv)
{
fprintf(fout, "set(CMAKE_POSITION_INDEPENDENT_CODE \"ON\")\n");
}
+ if (const char *lssDef = this->Makefile->GetDefinition(
+ "CMAKE_LINK_SEARCH_START_STATIC"))
+ {
+ fprintf(fout, "set(CMAKE_LINK_SEARCH_START_STATIC \"%s\")\n", lssDef);
+ }
+ if (const char *lssDef = this->Makefile->GetDefinition(
+ "CMAKE_LINK_SEARCH_END_STATIC"))
+ {
+ fprintf(fout, "set(CMAKE_LINK_SEARCH_END_STATIC \"%s\")\n", lssDef);
+ }
/* Put the executable at a known location (for COPY_FILE). */
fprintf(fout, "set(CMAKE_RUNTIME_OUTPUT_DIRECTORY \"%s\")\n",