fix for shared libs and borland
This commit is contained in:
parent
1be3b0fd99
commit
15805d260e
|
@ -41,10 +41,9 @@ IF (WIN32)
|
|||
SOURCE_FILES(SRCS cmBorlandMakefileGenerator.cpp)
|
||||
SOURCE_FILES(SRCS cmNMakeMakefileGenerator.cxx)
|
||||
IF(NOT UNIX)
|
||||
IF( CMAKE_CXX_COMPILER MATCHES Borland )
|
||||
ELSE (CMAKE_CXX_COMPILER MATCHES Borland )
|
||||
IF( NOT BORLAND )
|
||||
SUBDIRS(MFCDialog)
|
||||
ENDIF( CMAKE_CXX_COMPILER MATCHES Borland)
|
||||
ENDIF( NOT BORLAND )
|
||||
ENDIF(NOT UNIX)
|
||||
ENDIF (WIN32)
|
||||
|
||||
|
|
|
@ -315,14 +315,14 @@ void cmBorlandMakefileGenerator2::OutputSharedLibraryRule(std::ostream& fout,
|
|||
command += "-e";
|
||||
command += cmSystemTools::EscapeSpaces(dllpath.c_str());
|
||||
command += " ";
|
||||
// then list of object files
|
||||
command += " $(" + std::string(name) + "_SRC_OBJS) ";
|
||||
std::strstream linklibs;
|
||||
this->OutputLinkLibraries(linklibs, name, t);
|
||||
linklibs << std::ends;
|
||||
// then the linker options -L and libraries (any other order will fail!)
|
||||
command += linklibs.str();
|
||||
delete [] linklibs.str();
|
||||
// then list of object files
|
||||
command += " $(" + std::string(name) + "_SRC_OBJS) ";
|
||||
std::string command2 = "implib -w ";
|
||||
command2 += libpath + " " + dllpath;
|
||||
const std::vector<cmSourceFile>& sources = t.GetSourceFiles();
|
||||
|
|
|
@ -37,7 +37,7 @@ void Ask(const char* key, cmCacheManager::CacheEntry & entry)
|
|||
}
|
||||
|
||||
|
||||
main(int ac, char** av)
|
||||
int main(int ac, char** av)
|
||||
{
|
||||
std::vector<std::string> args;
|
||||
for(int j=0; j < ac; ++j)
|
||||
|
@ -105,4 +105,5 @@ main(int ac, char** av)
|
|||
}
|
||||
while(asked);
|
||||
std::cout << "CMake complete, run make to build project.\n";
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -6,7 +6,7 @@ FIND_PATH(BCB_BIN_PATH bcc32.exe
|
|||
"/Borland/Bcc55/Bin"
|
||||
[HKEY_LOCAL_MACHINE/SOFTWARE/Borland/C++Builder/5.0/RootDir]/Bin
|
||||
)
|
||||
|
||||
SET (BORLAND 1)
|
||||
SET (WORDS_BIGENDIAN )
|
||||
SET (HAVE_LIMITS_H 1)
|
||||
SET (HAVE_UNISTD_H 1)
|
||||
|
|
Loading…
Reference in New Issue