MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0013222 | CMake | CMake | public | 2012-05-15 10:35 | 2016-06-10 14:31 |
Reporter | sobigboy | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Sun | OS | Solaris | OS Version | 5.10 |
Product Version | CMake 2.8.7 | ||||
Target Version | Fixed in Version | ||||
Summary | 0013222: The CMake functions: check_function_exists(), the check_library_exists(), and the find_package() fail | ||||
Description | The check_function_exists(), the check_library_exists(), and the find_package() all fail if they are preceded by set(CMAKE_C_FLAGS “-Mfilename”). | ||||
Steps To Reproduce | 1. Ensure the server has both CC and cc compilers installed. 2. Create a CMakeLists.txt file that contains the statement: set(CMAKE_C_FLAGS “-Mfilename”) 3. After this statement add one or more of the above functions. 4. Execute the build and observe that CMake reports the search fails. 5. Remove the set(CMAKE_C_FLAGS “-Mfilename”) statement. 6. Execute the build again and observe that CMake reports the search is successful. | ||||
Additional Information | I used the rt library and Threads package for testing. CMake recognizes both the CC and cc compilers, but only the CC compiler is used for the build (all source files are .h and .cpp). According to man ld, the –M switch “reads mapfile as a text file of directives to ld.” All three functions fail regardless of the contents of the mapfile, whether the mapfile exists or not, or even when a filename is not specified. Surprisingly, set(CMAKE_CXX_FLAGS “-Mfilename”) does not cause the three functions to fail. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-05-15 10:35 | sobigboy | New Issue | |||
2012-05-16 14:59 | sobigboy | Note Added: 0029483 | |||
2012-05-16 16:04 | Antonio Ospite | Note Added: 0029485 | |||
2012-05-16 16:09 | Antonio Ospite | Note Edited: 0029485 | bug_revision_view_page.php?bugnote_id=29485#r652 | ||
2012-05-16 17:28 | sobigboy | Note Added: 0029487 | |||
2012-08-11 21:35 | David Cole | Status | new => backlog | ||
2012-08-11 21:35 | David Cole | Note Added: 0030418 | |||
2016-06-10 14:28 | Kitware Robot | Note Added: 0042048 | |||
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved | ||
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|