[cmake-developers] [CMake 0011724]: CMAKE_RUNTIME_OUTPUT_DIRECTORY breaks try_compile()'s COPY_FILE directive in 2.8.3
Mantis Bug Tracker
mantis at public.kitware.com
Wed Jan 19 16:38:01 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11724
======================================================================
Reported By: Daniel R. Gomez
Assigned To:
======================================================================
Project: CMake
Issue ID: 11724
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-01-19 16:38 EST
Last Modified: 2011-01-19 16:38 EST
======================================================================
Summary: CMAKE_RUNTIME_OUTPUT_DIRECTORY breaks
try_compile()'s COPY_FILE directive in 2.8.3
Description:
I have a CMake project that was working fine with 2.8.1. When I upgraded CMake
to 2.8.3, I began to see this error at configuration time:
********(cut here)********
-- Building for: NMake Makefiles
-- The C compiler identification is Intel
-- Using predefined Intel compiler flags
-- Check for working C compiler: C:/Program Files
(x86)/Intel/Compiler/C++/9.1/EM64T/Bin/icl.exe
-- Check for working C compiler: C:/Program Files
(x86)/Intel/Compiler/C++/9.1/EM64T/Bin/icl.exe -- works
-- Detecting C compiler ABI info
CMake Error: Could not COPY_FILE.
OutputFile: ''
copyFile: 'E:/build/test-283/CMakeFiles/CMakeDetermineCompilerABI_C.bin'
Unable to find executable for try_compile: tried
"E:/build/test-283/CMakeFiles/CMakeTmp/cmTryCompileExec.exe" and
"E:/build/test-283/CMakeFiles/CMakeTmp/Debug/cmTryCompileExec.exe" and
"E:/build/test-283/CMakeFiles/CMakeTmp/Development/cmTryCompileExec.exe".
-- Detecting C compiler ABI info - done
CMake Error at
X:/freeport/arch/win64_icl_mt/share/cmake-2.8/Modules/CMakeDetermineCompilerABI.cmake:40
(FILE):
file STRINGS file
"E:/build/test-283/CMakeFiles/CMakeDetermineCompilerABI_C.bin" cannot
be read.
Call Stack (most recent call first):
X:/freeport/arch/win64_icl_mt/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:71
(CMAKE_DETERMINE_COMPILER_ABI)
CMakeLists.txt:16 (PROJECT)
-- Found Perl: C:/cygwin/bin/perl.exe
-- Configuring incomplete, errors occurred!
********(cut here)********
I am making use of CMAKE_RUNTIME_OUTPUT_DIRECTORY. If I comment out the
directive that assigns to it, everything works peachy:
********(cut here)********
-- Building for: NMake Makefiles
-- The C compiler identification is Intel
-- Using predefined Intel compiler flags
-- Check for working C compiler: C:/Program Files
(x86)/Intel/Compiler/C++/9.1/EM64T/Bin/icl.exe
-- Check for working C compiler: C:/Program Files
(x86)/Intel/Compiler/C++/9.1/EM64T/Bin/icl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Found Perl: C:/cygwin/bin/perl.exe
-- Configuring done
-- Generating done
-- Build files have been written to: E:/build/test-283
********(cut here)********
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-01-19 16:38 Daniel R. GomezNew Issue
======================================================================
More information about the cmake-developers
mailing list