-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/CMake' of github.com:shogun-toolbox/shogun into…
… feature/CMake
- Loading branch information
Showing
3 changed files
with
23 additions
and
0 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
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,11 @@ | ||
|
||
SET(_bindir "${CMAKE_MODULE_PATH}/") | ||
TRY_COMPILE(HAVE_SPINLOCK "${_bindir}" "${CMAKE_MODULE_PATH}/spinlock-test.cpp") | ||
|
||
if (HAVE_SPINLOCK) | ||
MESSAGE(STATUS "Spinlock support found") | ||
SET(SPINLOCK_FOUND TRUE) | ||
else (HAVE_SPINLOCK) | ||
MESSAGE(STATUS "Spinlock support not found") | ||
SET(SPINLOCK_FOUND FALSE) | ||
endif (HAVE_SPINLOCK) |
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,6 @@ | ||
#include <pthread.h> | ||
|
||
int main() | ||
{ | ||
pthread_spinlock_t spinlock; | ||
} |