We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54db1d3 commit 92cf9dcCopy full SHA for 92cf9dc
CMakeLists.txt
@@ -40,10 +40,12 @@ endif()
40
41
option(USE_PI_MUTEX "Enables priority inheritance mutexes." ON)
42
if(USE_PI_MUTEX)
43
- if(WIN32 OR APPLE)
44
- message("Mutexes with priority inheritance are not supported on your system. Using std mutexes.")
45
- else()
+ if(CMAKE_SYSTEM_NAME STREQUAL Linux OR
+ CMAKE_SYSTEM_NAME STREQUAL VxWorks OR
+ CMAKE_SYSTEM_NAME STREQUAL QNX)
46
target_compile_definitions(${PROJECT_NAME} PUBLIC "RCPPUTILS_USE_PIMUTEX")
47
+ else()
48
+ message("Mutexes with priority inheritance are not supported on your system. Using std mutexes.")
49
endif()
50
51
0 commit comments