Allow setting DISKSERIAL compile variable to lock build to specific HDD serial number
This commit is contained in:
parent
f8f799422b
commit
1f390561c2
2 changed files with 128 additions and 0 deletions
|
@ -131,6 +131,11 @@ endif()
|
|||
set(APPNAME "MistServer" CACHE STRING "Name of the application, as used in user agent strings and the like")
|
||||
add_definitions(-DAPPNAME="${APPNAME}")
|
||||
|
||||
set(DISKSERIAL "" CACHE STRING "Lock application to given disk serial number")
|
||||
if (DISKSERIAL)
|
||||
add_definitions(-DDISKSERIAL="${DISKSERIAL}")
|
||||
endif()
|
||||
|
||||
option(WITH_THREADNAMES "Enable fancy names for threads (not supported on all platforms)")
|
||||
if (WITH_THREADNAMES)
|
||||
add_definitions(-DWITH_THREADNAMES=1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue