Running this CMake script...

PROJECT(T)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

INCLUDE(CheckFunctionExists)
INCLUDE(CheckIncludeFile)
INCLUDE(CheckTypeSize)
INCLUDE(CheckSymbolExists)
ENABLE_TESTING()


TRY_RUN(_result
        _compileResult 
        ${CMAKE_CURRENT_BINARY_DIR}
        ${CMAKE_CURRENT_SOURCE_DIR}/CMakeCheckFiles/sigAtomic_t.c)
 
SET(_targetname ULS)
SET(_src sigAtomic_t.c)

ADD_EXECUTABLE(${_targetname} ${_src})

...results in these messages:


Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
CMake Error: Could not COPY_FILE.
  OutputFile: ''
    copyFile:
'C:/work-c/tm/CMake/CMakeFiles/CMakeDetermineCompilerABI_C.bin'

Unable to find executable for try_compile: tried
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".

Detecting C compiler ABI info - done
CMake Error at C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE):
  file STRINGS file
  "C:/work-c/tm/CMake/CMakeFiles/CMakeDetermineCompilerABI_C.bin" cannot
be
  read.
Call Stack (most recent call first):
  C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71
(CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:1 (PROJECT)


Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
CMake Error: Could not COPY_FILE.
  OutputFile: ''
    copyFile:
'C:/work-c/tm/CMake/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin'

Unable to find executable for try_compile: tried
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".

Detecting CXX compiler ABI info - done
CMake Error at C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40 (FILE):
  file STRINGS file
  "C:/work-c/tm/CMake/CMakeFiles/CMakeDetermineCompilerABI_CXX.bin"
cannot be
  read.
Call Stack (most recent call first):
  C:/Program Files/CMake
2.8/share/cmake-2.8/Modules/CMakeTestCXXCompiler.cmake:64
(CMAKE_DETERMINE_COMPILER_ABI)
  CMakeLists.txt:1 (PROJECT)


CMake Error: Unable to find executable for try_run: tried
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and
"C:/work-c/tm/CMake/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".
Configuring incomplete, errors occurred!

So, where is my error? I used Windows (Win32 Installer)-Version of CMake

Greetings
Micha


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to