diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index ecdd3b059..25be6cdaa 100644 --- a/Source/cmMakefile.cxx +++ b/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())) { diff --git a/Tests/COnly/CMakeLists.txt b/Tests/COnly/CMakeLists.txt index 228eecb83..3e4d4d5b7 100644 --- a/Tests/COnly/CMakeLists.txt +++ b/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)