Modify ↓
Opened 13 years ago
Closed 12 years ago
#52 closed defect (fixed)
Non-portable pthreads detection in pcitool, rev 156
Reported by: | Matthias Vogelgesang | Owned by: | Suren A. Chilingaryan |
---|---|---|---|
Priority: | blocker | Milestone: | |
Component: | pcilib | Version: | |
Keywords: | Cc: |
Description
You should definately make use of the Threads module that is contained with CMake. It will tell you if libraries are available, you can use target_link_libraries() and it will also work with non-gcc compilers.
Attachments (0)
Change History (5)
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Lines 31 and around 95: http://ufo.kit.edu/ufo/browser/vogelgesang/libuca/src/CMakeLists.txt
comment:4 Changed 12 years ago by
Priority: | minor → blocker |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
Type: | enhancement → defect |
This now caused severe problems on Ubuntu 12.04 at HZG where pcitool couldn't be built.
The problem occurs because you manually override LINK_FLAGS
instead of using the suggested target_link_libraries(pci ${CMAKE_THREAD_LIBS_INIT})
function.
Note: See
TracTickets for help on using
tickets.
Thanks. Can you post an example here to save me googling?