MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015975 | CMake | CMake | public | 2016-02-16 10:58 | 2016-06-10 14:21 |
| Reporter | stw_sesa | ||||
| Assigned To | geoffviola | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | x86 | OS | Windows | OS Version | 7 |
| Product Version | |||||
| Target Version | CMake 3.6 | Fixed in Version | CMake 3.6 | ||
| Summary | 0015975: GHS Multi Generator: COPY_FILE in try_compile does not work | ||||
| Description | try_compile COPY_FILE: The GHS MULTI Compiler compiles+links the executable to "targetname.as", but the CMake Generator currently looks for "targetname" (without extension). As a folder with such a name exists in the build directory COPY_FILE copies the folder instead of the built executable and the try_compile execution does not fail. | ||||
| Steps To Reproduce | Create a simple CMakeLists.txt like this: try_compile( result "${CMAKE_BINARY_DIR}/CMakeFiles/CMakeTmp" "${CMAKE_SOURCE_DIR}/test.c" COPY_FILE "${CMAKE_BINARY_DIR}/test_executable" ) message(STATUS "result of try_compile: " ${result}) Create a simple test program as "test.c": int main(int argc, char *argv[]) { return 0; } Run CMake using GHS MULTI Generator (ARM Integrity). Actual result: try_compile succeeds and a empty folder "test_executable" is created in the build directory Expected result: try_compile succeeds and the built executable "test_executable" is located in the build directory | ||||
| Additional Information | I've tried setting set("CMAKE_EXECUTABLE_SUFFIX", ".as") manually at various locations but it didn't work. Either it wasn't set at all or overwritten; I don't know. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5640/testproject.zip | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2016-02-16 10:58 | stw_sesa | New Issue | |||
| 2016-03-08 07:46 | stw_sesa | Note Added: 0040645 | |||
| 2016-03-08 07:47 | stw_sesa | File Added: testproject.zip | |||
| 2016-03-21 10:36 | Brad King | Note Added: 0040737 | |||
| 2016-03-22 16:17 | Brad King | Note Added: 0040754 | |||
| 2016-03-22 16:17 | Brad King | Assigned To | => geoffviola | ||
| 2016-03-22 16:17 | Brad King | Status | new => resolved | ||
| 2016-03-22 16:17 | Brad King | Resolution | open => fixed | ||
| 2016-03-22 16:17 | Brad King | Fixed in Version | => CMake 3.6 | ||
| 2016-03-22 16:17 | Brad King | Target Version | => CMake 3.6 | ||
| 2016-06-10 14:21 | Kitware Robot | Note Added: 0041216 | |||
| 2016-06-10 14:21 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||