[CMake] Recognize compiler, but not work

oneiro oneiro at o2.pl
Sun Oct 7 14:21:03 EDT 2012


Hi all,
 
I'm beginner user of CMake and try compile some code. Of course I've error. 
 
After read help I found problem - question is simple - does CMake (cmake-2.8.9-win32-x86.exe) support Borland C/C++ Compiler v5.60 (form CBoland 6)? Theoretical yes, but practical no (form me).
 
I made CMakeLists.txt, with contain 1 simple line:
 
PROJECT(test)
 
and I get this:
 
-- The C compiler identification is Borland 5.60
-- The CXX compiler identification is Borland 5.60
-- Check for working C compiler: D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe
-- Check for working C compiler: D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe -- broken
CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE):
  The C compiler "D:/Program Files/Borland/CBuilder6/Bin/bcc32.exe" is not
  able to compile a simple test program.
  It fails with the following output:
   Change Dir: G:/Genetyka/test/CMakeFiles/CMakeTmp
  
  Run Build Command:make "cmTryCompileExec813240074\fast"
  MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
      make -f CMakeFiles\cmTryCompileExec813240074.dir\build.make -l -o
  CMakeFiles\cmTryCompileExec813240074.dir\build
  MAKE Version 5.2 Copyright (c) 1987, 2000 Borland
      "C:\Program Files\CMake 2.8\bin\cmake.exe" -E cmake_progress_report
  G:\Genetyka\test\CMakeFiles\CMakeTmp\CMakeFiles 1
  CMake Error: cmake version 2.8.9
  Usage: C:\PROGRA~1\CMake -E [command] [arguments ...]
  Available commands: 
    chdir dir cmd [args]...   - run command in a given directory
    compare_files file1 file2 - check if file1 is same as file2
    copy file destination     - copy file to destination (either file or directory)
    copy_directory source destination   - copy directory 'source' content to directory 'destination'
    copy_if_different in-file out-file  - copy file if input has changed
    echo [string]...          - displays arguments as text
    echo_append [string]...   - displays arguments as text but no new line
    environment               - display the current environment
    make_directory dir        - create a directory
    md5sum file1 [...]        - compute md5sum of files
    remove [-f] file1 file2 ... - remove the file(s), use -f to force it
    remove_directory dir      - remove a directory and its contents
    rename oldname newname    - rename a file or directory (on one volume)
    tar [cxt][vfz][cvfj] file.tar file/dir1 file/dir2 ... - create a tar archive
    time command [args] ...   - run command and return elapsed time
    touch file                - touch a file.
    touch_nocreate file       - touch a file but do not create it.
  Available on Windows only:
    comspec                   - on windows 9x use this for RunCommand
    delete_regv key           - delete registry value
    write_regv key value      - write registry value
  
  
  ** error 1 ** deleting
  CMakeFiles\cmTryCompileExec813240074.dir\testCCompiler.c.obj
  
  ** error 1 ** deleting cmTryCompileExec813240074\fast
  
  
  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:1 (Project)
-- Configuring incomplete, errors occurred!
 
---------------------------------------------------------------------------------
 
 
Could me anybody help, say why this no work, why test program not work with this complier?
 
 
PS. Complier in IDE Borland works very good. 
 
BR, Krzysiek
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20121007/d5c0a328/attachment.htm>


More information about the CMake mailing list