[cmake-developers] [CMake 0014766]: CTest does not handle executable extension properly
Mantis Bug Tracker
mantis at public.kitware.com
Thu Feb 20 05:32:17 EST 2014
The following issue has been SUBMITTED.
======================================================================
http://cmake.org/Bug/view.php?id=14766
======================================================================
Reported By: Mathieu Malaterre
Assigned To:
======================================================================
Project: CMake
Issue ID: 14766
Category: (No Category)
Reproducibility: have not tried
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2014-02-20 05:32 EST
Last Modified: 2014-02-20 05:32 EST
======================================================================
Summary: CTest does not handle executable extension properly
Description:
Here is a simple scenarion, toolchain target mingw32 compiler on a linux host.
Steps:
$ more CMakeLists.txt toolchain.cmake zurg.c
::::::::::::::
CMakeLists.txt
::::::::::::::
cmake_minimum_required(VERSION 2.8)
project(wine_test C)
add_executable(zurg zurg.c)
enable_testing()
add_test(zurg zurg)
::::::::::::::
toolchain.cmake
::::::::::::::
set(CMAKE_SYSTEM_NAME Windows)
set(CMAKE_C_COMPILER i586-mingw32msvc-gcc)
set(CMAKE_RC_COMPILER i586-mingw32msvc-windres)
set(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc)
::::::::::::::
zurg.c
::::::::::::::
int main()
{
return 0;
}
Now build:
$ mkdir bin32
$ cd bin32
$ cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake ..
$ make
$ make test
Running tests...
Test project /tmp/c/bin32
Start 1: zurg
Could not find executable zurg
Looked in the following places:
zurg
zurg
Release/zurg
Release/zurg
Debug/zurg
Debug/zurg
MinSizeRel/zurg
MinSizeRel/zurg
RelWithDebInfo/zurg
RelWithDebInfo/zurg
Deployment/zurg
Deployment/zurg
Development/zurg
Development/zurg
Unable to find executable: zurg
1/1 Test http://cmake.org/Bug/view.php?id=1: zurg
.............................***Not Run 0.00 sec
0% tests passed, 1 tests failed out of 1
Total Test time (real) = 0.00 sec
The following tests FAILED:
1 - zurg (Not Run)
Errors while running CTest
make: *** [test] Error 8
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-02-20 05:32 Mathieu MalaterreNew Issue
======================================================================
More information about the cmake-developers
mailing list