View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001163CMakepublic2004-09-15 06:332004-09-17 09:02
ReporterJan Woetzel 
Assigned ToBill Hoffman 
PriorityhighSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001163: PROJECT( foo C++) does not search CMAKE_CXX_COMPILER
DescriptionPROJECT(foo C++)

I think this should compile all source files with the C++ compiler, ein particular all C files should be compiled with C++ complier instead of C compiler.

Problem:
The C++ compiler (CMAKE_CXX_COMPILER) is not set/not searched and thus the compilation fails
because the "compiler name" string is empty.

Instead the C compiler is set (CMAKE_C_COMPILER) - but not the C++ compiler.

Thus compilation fails on Linux/g++.

Jan.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0001442)
Bill Hoffman (manager)
2004-09-16 16:56

The correct way to do this is:
PROJECT(foo CXX)

(0001459)
Jan Woetzel (reporter)
2004-09-17 04:13

OK, using CXX instead of C++ work s (on Linux).

Please update the documentation of the PROJECT command:
PROJECT(projectname [C++] [C] [Java])
-->
PROJECT(projectname [CXX] [C] [Java])


Jan.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team