View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001244 | CMake | Modules | public | 2004-10-11 10:22 | 2008-10-09 12:53 | ||||
Reporter | Marco Nolden | ||||||||
Assigned To | Bill Hoffman | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0001244: TestCXXAcceptsFlag.cmake gives wrong results when cmake is called from Makefile | ||||||||
Description | I'm testing compiler flags with CHECK_CXX_ACCEPTS_FLAG and get different results depending on the way cmake is called. When I call cmake explicitly the option (-fmessage-length=0 for gcc 2.95) is correctly recognized as unsupported: nolden@zaphod:~/work/zaphod-bin> /opt/linux/cmake-2.0.3/bin/cmake ../mitk-src/ip++/ [...]-- Checking to see if CXX compiler acepts flag -Wno-deprecated -- Checking to see if CXX compiler acepts flag -Wno-deprecated - yes -- Checking to see if CXX compiler acepts flag -Wall -- Checking to see if CXX compiler acepts flag -Wall - yes -- Checking to see if CXX compiler acepts flag -fmessage-length=0 -- Checking to see if CXX compiler acepts flag -fmessage-length=0 - no -- Checking to see if CXX compiler acepts flag -w -- Checking to see if CXX compiler acepts flag -w - yes After that I call make: nolden@zaphod:~/work/zaphod-bin> make [...] Building dependencies. cmake.depends... /opt/linux/cmake-2.0.3/bin/cmake -S/home/nolden/work/mitk-src/ip++/Build/MITK -O/home/nolden/work/zaphod-bin/Build/MITK -H/home/nolden/work/mitk-src/ip++ -B/home/nolden/work/zaphod-bin [...] -- Checking to see if CXX compiler acepts flag -Wno-deprecated -- Checking to see if CXX compiler acepts flag -Wno-deprecated - yes -- Checking to see if CXX compiler acepts flag -Wall -- Checking to see if CXX compiler acepts flag -Wall - yes -- Checking to see if CXX compiler acepts flag -fmessage-length=0 -- Checking to see if CXX compiler acepts flag -fmessage-length=0 - yes -- Checking to see if CXX compiler acepts flag -w -- Checking to see if CXX compiler acepts flag -w - yes and all options are accepted, resulting in compile errors. I will attach the relevant part of the cmake file. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | cmake-snippet [^] (660 bytes) 1969-12-31 19:00 [Show Content] | ||||||||
Relationships | |
Relationships |
Notes | |
(0001646) System Admin (reporter) 2004-10-26 17:25 |
I submitted the fix for this in Modules/TestCXXAcceptsFlag.cmake: /cvsroot/CMake/CMake/Modules/TestCXXAcceptsFlag.cmake,v <-- TestCXXAcceptsFlag.cmake new revision: 1.7; previous revision: 1.6 This should fix the problem. In your project you can set CMAKE_MODULE_PATH to locateion of the new one, that way you can keep compatibility with old versions of cmake. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2007-08-04 16:05 | Berk Geveci | Assigned To | Adam Mullett => |
2007-08-04 16:05 | Berk Geveci | Status | assigned => closed |
2007-08-04 16:05 | Berk Geveci | Resolution | duplicate => fixed |
2007-08-04 16:05 | Berk Geveci | Summary | Goodsite => TestCXXAcceptsFlag.cmake gives wrong results when cmake is called from Makefile |
2007-08-04 16:05 | Berk Geveci | Note Deleted: 0008243 | |
2007-08-04 16:05 | Berk Geveci | Project | Xdmf => CMake |
2007-08-04 16:05 | Berk Geveci | Status | closed => assigned |
2007-08-04 16:05 | Berk Geveci | Assigned To | => Bill Hoffman |
2008-10-09 12:53 | Bill Hoffman | Status | assigned => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |