Browse Source

ERR: Fix GetModulesFile

Andy Cedilnik 21 years ago
parent
commit
07bd2d8264
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Source/cmMakefile.cxx
  2. 1 1
      Tests/COnly/CMakeLists.txt

+ 1 - 0
Source/cmMakefile.cxx

@@ -2198,6 +2198,7 @@ std::string cmMakefile::GetModulesFile(const char* filename)
     {
     std::string itempl = *i;
     cmSystemTools::ConvertToUnixSlashes(itempl);
+    itempl += "/";
     itempl += filename;
     if(cmSystemTools::FileExists(itempl.c_str()))
       {

+ 1 - 1
Tests/COnly/CMakeLists.txt

@@ -4,7 +4,7 @@ PROJECT (conly C)
 SET(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
 ADD_LIBRARY(testc1 STATIC libc1.c)
 ADD_LIBRARY(testc2 SHARED libc2.c)
-ADD_EXECUTABLE (conly conly.c foo.c foo.h)
+ADD_EXECUTABLE (conly MACBUNDLE conly.c foo.c foo.h)
 TARGET_LINK_LIBRARIES(conly testc1 testc2)
 
 STRING(ASCII 35 32 67 77 97 107 101 ASCII_STRING)