summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorChuck Atkins <chuck.atkins@kitware.com>2015-08-14 15:48:01 (GMT)
committerChuck Atkins <chuck.atkins@kitware.com>2015-08-14 15:48:01 (GMT)
commitfb77c2c54bc341e76a83f646e6d75662c44179fc (patch)
tree74f70e695f73781489e4db8918321fa8580ad8fb /Source
parent17ecfd8210b4db74753c4565b10a2b75dfa4c480 (diff)
downloadCMake-fb77c2c54bc341e76a83f646e6d75662c44179fc.zip
CMake-fb77c2c54bc341e76a83f646e6d75662c44179fc.tar.gz
CMake-fb77c2c54bc341e76a83f646e6d75662c44179fc.tar.bz2
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",