View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000772CMakepublic2004-04-20 18:192004-04-21 15:16
ReporterGordon Schumacher 
Assigned ToBill Hoffman 
PrioritylowSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000772: Changing CMAKE_CURRENT_SOURCE_DIR causes strange behaviour
DescriptionThis 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.
TagsNo tags attached.
Attached Files

 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.


 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team