[Cmake] CMake-1.4.5: intermediate files directory (Borland Makefiles)
Bill Hoffman
bill.hoffman at kitware.com
Tue Oct 22 09:26:20 EDT 2002
It is not possible to create the directories like that for the borland makefiles.
However, you can do an out of source build, one for each type of build.
So, if you have a project like this:
project - source directory
project-debug - build tree for debug version of project
project-release - build tree for release version of project
You run cmake once for project-debug and once for project-release
-Bill
At 09:45 AM 10/22/2002 +0200, Stefan Kowski wrote:
>Hi,
>
>I am trying to put all .obj, .tds und .exe files in a subdirectory (similar
>to MS Visual C++).
>
>In the Borland makefile I see that all paths for source and object files are
>hardcoded and not using variables. When I start the makefile, I get multiple
>directories with object files.
>
>Example:
>
># Rules to build $(CMAKE_OBJECT_FILE_SUFFIX) files from their sources:
>#---------------------------------------------------------
># Build plt.bcc32\Project1.obj From
>H:/Projekt/Test/cmake/plt.bcc32/Project1.cpp
>#
>
>plt.bcc32\Project1.obj: H:\Projekt\Test\cmake\plt.bcc32\Project1.cpp
> echo $(CMAKE_CXX_COMPILER) $(CMAKE_CXX_FLAGS) -oplt.bcc32\Project1.obj
>$(INCLUDE_FLAGS) -c H:\Projekt\Test\cmake\plt.bcc32\Project1.cpp
> $(CMAKE_CXX_COMPILER) $(CMAKE_CXX_FLAGS) -oplt.bcc32\Project1.obj
>$(INCLUDE_FLAGS) -c H:\Projekt\Test\cmake\plt.bcc32\Project1.cpp
>
>#---------------------------------------------------------
># Build plt.bcc32\source\Unit1.obj From
>H:/Projekt/Test/cmake/plt.bcc32/source/Unit1.cpp
>#
>
>plt.bcc32\source\Unit1.obj: H:\Projekt\Test\cmake\plt.bcc32\source\Unit1.cpp
> echo $(CMAKE_CXX_COMPILER) $(CMAKE_CXX_FLAGS) -oplt.bcc32\source\Unit1.obj
>$(INCLUDE_FLAGS) -c H:\Projekt\Test\cmake\plt.bcc32\source\Unit1.cpp
> $(CMAKE_CXX_COMPILER) $(CMAKE_CXX_FLAGS) -oplt.bcc32\source\Unit1.obj
>$(INCLUDE_FLAGS) -c H:\Projekt\Test\cmake\plt.bcc32\source\Unit1.cpp
>
>Is it possible to specifify a directory for intermediate files for Borland
>Makefiles?
>
>Stefan
>
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake
More information about the CMake
mailing list