View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0000772 | CMake | public | 2004-04-20 18:19 | 2004-04-21 15:16 | |||||
Reporter | Gordon Schumacher | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | low | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | no change required | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0000772: Changing CMAKE_CURRENT_SOURCE_DIR causes strange behaviour | ||||||||
Description | This is possibly something that I shouldn't be doing, but should it then perhaps be read-only? If I perform the following calls in a CMakeLists.txt: MESSAGE(STATUS ${CMAKE_CURRENT_SOURCE_DIR}) SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src} MESSAGE(STATUS ${CMAKE_CURRENT_SOURCE_DIR}) MESSAGE(STATUS ${CMAKE_CURRENT_SOURCE_DIR}) MESSAGE(STATUS ${CMAKE_CURRENT_SOURCE_DIR}) MESSAGE(STATUS ${CMAKE_CURRENT_SOURCE_DIR}) SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/..) I get the following output: -- J:/MCCL/Timer -- J:/MCCL/Timer/src}MESSAGE(STATUSJ:/MCCL/Timer -- J:/MCCL/Timer/src}MESSAGE(STATUSJ:/MCCL/Timer -- J:/MCCL/Timer/src}MESSAGE(STATUSJ:/MCCL/Timer It looks like a pointer is perhaps being mangled somewhere. No crash, but definitely not correct. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0000915) Gordon Schumacher (reporter) 2004-04-20 20:18 |
Running the same makefile with devel CVS build generates: CMake Error: Error in cmake code at J:/MCCL/Timer/CMakeLists.txt:41: Parse error. Function missing ending ")". Instead found "(". CMake Error: Error in cmake code at J:/MCCL/Timer/CMakeLists.txt:41: Parse error. Function missing ending ")". Instead found "(". |
(0000926) Bill Hoffman (manager) 2004-04-21 15:16 |
This variable should not be changed, and there is a missing ) in the code causing the errors. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |