From 6695fa300bad1a2ba28bf4101097487f256fdd0b Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Thu, 16 Jan 2003 08:28:45 -0500 Subject: ENH: add the config directory to look for the loadable module --- Tests/Complex/Executable/complex.cxx | 5 +++++ Tests/ComplexOneConfig/Executable/complex.cxx | 5 +++++ Tests/ComplexRelativePaths/Executable/complex.cxx | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/Tests/Complex/Executable/complex.cxx b/Tests/Complex/Executable/complex.cxx index 730510d..97e382a 100644 --- a/Tests/Complex/Executable/complex.cxx +++ b/Tests/Complex/Executable/complex.cxx @@ -104,6 +104,11 @@ int main() { std::string lib = BINARY_DIR; lib += "/bin/"; +#ifdef CMAKE_INTDIR + lib += CMAKE_INTDIR; + lib += "/"; +#endif + lib += cmDynamicLoader::LibPrefix(); lib += "CMakeTestModule"; lib += cmDynamicLoader::LibExtension(); diff --git a/Tests/ComplexOneConfig/Executable/complex.cxx b/Tests/ComplexOneConfig/Executable/complex.cxx index 730510d..97e382a 100644 --- a/Tests/ComplexOneConfig/Executable/complex.cxx +++ b/Tests/ComplexOneConfig/Executable/complex.cxx @@ -104,6 +104,11 @@ int main() { std::string lib = BINARY_DIR; lib += "/bin/"; +#ifdef CMAKE_INTDIR + lib += CMAKE_INTDIR; + lib += "/"; +#endif + lib += cmDynamicLoader::LibPrefix(); lib += "CMakeTestModule"; lib += cmDynamicLoader::LibExtension(); diff --git a/Tests/ComplexRelativePaths/Executable/complex.cxx b/Tests/ComplexRelativePaths/Executable/complex.cxx index 730510d..97e382a 100644 --- a/Tests/ComplexRelativePaths/Executable/complex.cxx +++ b/Tests/ComplexRelativePaths/Executable/complex.cxx @@ -104,6 +104,11 @@ int main() { std::string lib = BINARY_DIR; lib += "/bin/"; +#ifdef CMAKE_INTDIR + lib += CMAKE_INTDIR; + lib += "/"; +#endif + lib += cmDynamicLoader::LibPrefix(); lib += "CMakeTestModule"; lib += cmDynamicLoader::LibExtension(); -- cgit v0.12