-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmake: ensure we globally match on _GNU_SOURCE
- Loading branch information
Showing
4 changed files
with
18 additions
and
3 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 |
---|---|---|
|
@@ -16,6 +16,8 @@ set(PROJECT_CONTACT "Michael Wallner <[email protected]>") | |
set(CXX_STANDARD 11) | ||
set(CMAKE_POSITION_INDEPENDENT_CODE ON) | ||
|
||
set(GLOBAL_DEFINITIONS _GNU_SOURCE) | ||
|
||
include(CMakeConfig.txt) | ||
include(GNUInstallDirs) | ||
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") | ||
|
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
if(ENABLE_MEMASLAP AND CMAKE_USE_PTHREADS_INIT) | ||
add_definitions(-D_GNU_SOURCE) | ||
|
||
include(CheckAtomics) | ||
|
||
|
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