-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
interfaces-plugin: refactor interface state changes tracking
- Loading branch information
Mateo Cindrić
committed
Aug 23, 2022
1 parent
c611bf7
commit 4f0c5d5
Showing
4 changed files
with
127 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
if(PTHREAD_LIBRARIES AND PTHREAD_INCLUDE_DIRS) | ||
set(PTHREAD_FOUND TRUE) | ||
else() | ||
find_path( | ||
PTHREAD_INCLUDE_DIR | ||
NAMES pthread.h | ||
PATHS /usr/include /usr/local/include /opt/local/include /sw/include ${CMAKE_INCLUDE_PATH} ${CMAKE_INSTALL_PREFIX}/include | ||
) | ||
|
||
find_library( | ||
PTHREAD_LIBRARY | ||
NAMES pthread | ||
PATHS /usr/lib /usr/lib64 /usr/local/lib /usr/local/lib64 /opt/local/lib /sw/lib ${CMAKE_LIBRARY_PATH} ${CMAKE_INSTALL_PREFIX}/lib | ||
) | ||
|
||
if(PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY) | ||
set(PTHREAD_FOUND TRUE) | ||
else(PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY) | ||
set(PTHREAD_FOUND FALSE) | ||
endif(PTHREAD_INCLUDE_DIR AND PTHREAD_LIBRARY) | ||
|
||
set(PTHREAD_INCLUDE_DIRS ${PTHREAD_INCLUDE_DIR}) | ||
set(PTHREAD_LIBRARIES ${PTHREAD_LIBRARY}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters