MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0015128 | CMake | Modules | public | 2014-09-03 18:29 | 2015-04-06 09:07 |
| Reporter | Orion E. Poplawski | ||||
| Assigned To | |||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | CMake 3.0.1 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0015128: FindProtobuf issues | ||||
| Description | For the Fedora package build of ParaView, we need to use system libraries. I have been patching ParaView to use the system protobuf library (see http://www.paraview.org/Bug/view.php?id=13656 [^]) for a while now and am updating to 4.2RC1. With that I am now seeing issues with the interaction with the cmake FindProtobuf module, due to the fact that it uses the optimize/debug list convention and add -lpthread to PROTOBUF_LIBRARIES. Part of the issue is the way it looks for a debug library: find_library(${name}_LIBRARY NAMES ${filename} PATHS ${PROTOBUF_SRC_ROOT_FOLDER}/vsprojects/Release) mark_as_advanced(${name}_LIBRARY) find_library(${name}_LIBRARY_DEBUG NAMES ${filename} PATHS ${PROTOBUF_SRC_ROOT_FOLDER}/vsprojects/Debug) mark_as_advanced(${name}_LIBRARY_DEBUG) On Linux/Unix this generally finds the same library in the same path. Changing to: find_library(${name}_LIBRARY_DEBUG NAMES ${filename} PATHS ${PROTOBUF_SRC_ROOT_FOLDER}/vsprojects/Debug NO_DEFAULT_PATH) mark_as_advanced(${name}_LIBRARY_DEBUG) helps with that. I'm not sure what to do with the addition of -lphtreads. Simply removing it may be the way to go. The paraview protobuf cmake configuration seems to add it to protobuf_LIB_DEPS. | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/5241/cmake-FindProtobuf.patch | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2014-09-03 18:29 | Orion E. Poplawski | New Issue | |||
| 2014-09-03 18:30 | Orion E. Poplawski | File Added: cmake-FindProtobuf.patch | |||
| 2014-09-04 10:39 | Brad King | Assigned To | => Ben Boeckel | ||
| 2014-09-04 10:39 | Brad King | Status | new => assigned | ||
| 2014-09-04 10:40 | Brad King | Target Version | => CMake 3.1 | ||
| 2014-09-04 12:24 | mwoehlke | Note Added: 0036731 | |||
| 2014-09-04 12:33 | Orion Poplawski | Note Added: 0036732 | |||
| 2014-09-04 13:00 | mwoehlke | Note Added: 0036733 | |||
| 2014-09-05 11:33 | Orion E. Poplawski | Note Added: 0036734 | |||
| 2014-10-03 09:32 | Brad King | Note Added: 0036897 | |||
| 2014-10-03 09:32 | Brad King | Assigned To | Ben Boeckel => | ||
| 2014-10-03 09:32 | Brad King | Status | assigned => resolved | ||
| 2014-10-03 09:32 | Brad King | Resolution | open => no change required | ||
| 2014-10-03 09:32 | Brad King | Target Version | CMake 3.1 => | ||
| 2015-04-06 09:07 | Robert Maynard | Note Added: 0038414 | |||
| 2015-04-06 09:07 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||