View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0001796 | CMake | public | 2005-04-25 17:21 | 2005-07-15 16:09 | |||||
Reporter | James Bigler | ||||||||
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 | 0001796: IRIX sproc not detected | ||||||||
Description | I'm using CMake on Irix, and I wanted to use the sproc threads. I decided to use Modules/FindThreads.cmake. This module tests for the sys/prctl.h include file. IF(CMAKE_SYSTEM MATCHES IRIX) CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SPROC_H) ENDIF(CMAKE_SYSTEM MATCHES IRIX) However, it fails because it needs to also include sys/types.h. How can I make it check for sys/prctl.h with sys/types.h? ======================================= I got this response from Brad King: Change these lines: -------------------------------------------------------- # Do we have sproc? IF(CMAKE_SYSTEM MATCHES IRIX) CHECK_INCLUDE_FILE("sys/prctl.h" CMAKE_HAVE_SPROC_H) ENDIF(CMAKE_SYSTEM MATCHES IRIX) -------------------------------------------------------- to these: -------------------------------------------------------- INCLUDE(CheckIncludeFiles) # Do we have sproc? IF(CMAKE_SYSTEM MATCHES IRIX) CHECK_INCLUDE_FILES("sys/types.h;sys/prctl.h" CMAKE_HAVE_SPROC_H) ENDIF(CMAKE_SYSTEM MATCHES IRIX) -------------------------------------------------------- This, however, did not fix it. It stills fails to detect sproc. If you have code you want me to check out, I can troubleshoot it for you. James | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0002378) James Bigler (developer) 2005-05-02 15:23 |
Is there a work around I could use for the time being? Thanks, James |
(0002690) Bill Hoffman (manager) 2005-07-15 16:04 |
This |
(0002691) Bill Hoffman (manager) 2005-07-15 16:09 |
INCLUDE(FindThreads) MESSAGE(${CMAKE_USE_SPROC_INIT}) On the irix Muse at utah the above prints 1. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |