View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001163 | CMake | public | 2004-09-15 06:33 | 2004-09-17 09:02 | |||||
Reporter | Jan Woetzel | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | high | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001163: PROJECT( foo C++) does not search CMAKE_CXX_COMPILER | ||||||||
Description | PROJECT(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. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
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. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |