View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006122CMakeCMakepublic2007-12-04 09:582008-04-21 19:08
ReporterJoseph Winston 
Assigned ToAlex Neundorf 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006122: Setting CMAKE_CXX_COMPILER does not set all of the other tools
DescriptionWhen CMAKE_CXX_COMPILER is set, it seems that the following CMAKE_LINKER,
CMAKE_NM, CMAKE_OBJCOPY. CMAKE_OBJDUMP, and CMAKE_STRIP should be set since these might be different than the ones found on the default path.
Additional InformationThis seems to fail even when I set _CMAKE_TOOLCHAIN_LOCATION as follows:
  SET(_CMAKE_TOOLCHAIN_LOCATION "${APPL_DIR}/gcc/V3.3.6/${SpPLATFORM}/bin")

So I am forced to use FORCE:

  SET(CMAKE_LINKER "${APPL_DIR}/gcc/V3.3.6/${SpPLATFORM}/bin/ld" CACHE PATH "ld" FORCE)
  SET(CMAKE_NM "${APPL_DIR}/gcc/V3.3.6/${SpPLATFORM}/bin/nm" CACHE PATH "nm" FORCE)
  SET(CMAKE_OBJCOPY "${APPL_DIR}/gcc/V3.3.6/${SpPLATFORM}/bin/objcopy" CACHE PATH "objcopy" FORCE)
  SET(CMAKE_OBJDUMP "${APPL_DIR}/gcc/V3.3.6/${SpPLATFORM}/bin/objdump" CACHE PATH "objdump" FORCE)
  SET(CMAKE_STRIP "${APPL_DIR}/gcc/V3.3.6/${SpPLATFORM}/bin/strip" CACHE PATH "strip" FORCE)
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0009933)
Alex Neundorf (developer)
2007-12-15 17:56

"it seems that the following CMAKE_LINKER, ... should be set since these might be different than the ones found on the default path."

I don't understand what you mean with this. The variables will be set. The executables in the same directory as the compiler will be prefered.

Which behaviour do you want/need ?

Alex
(0010045)
Alex Neundorf (developer)
2008-01-02 12:37

Can you please test this with cmake cvs ?

Alex
(0011068)
Alex Neundorf (developer)
2008-04-03 17:51

Do you still have the same problem with cmake 2.6.0 ?

Alex
(0011469)
Alex Neundorf (developer)
2008-04-21 19:08

I don't understand the problem, can't reproduce it and there is no feedback at all, so I'm closing this.
Feel free to reopen it if you add more information how to reproduce the problem.

Alex

 Issue History
Date Modified Username Field Change
2007-12-04 09:58 Joseph Winston New Issue
2007-12-14 10:29 Bill Hoffman Status new => assigned
2007-12-14 10:29 Bill Hoffman Assigned To => Alex Neundorf
2007-12-15 17:56 Alex Neundorf Note Added: 0009933
2007-12-15 17:58 Alex Neundorf Category CCMake => CMake
2008-01-02 11:33 Alex Neundorf Status assigned => feedback
2008-01-02 12:02 Bill Hoffman Status feedback => assigned
2008-01-02 12:37 Alex Neundorf Note Added: 0010045
2008-04-03 17:51 Alex Neundorf Note Added: 0011068
2008-04-21 19:08 Alex Neundorf Note Added: 0011469
2008-04-21 19:08 Alex Neundorf Status assigned => closed
2008-04-21 19:08 Alex Neundorf Resolution open => unable to reproduce


Copyright © 2000 - 2018 MantisBT Team