mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 07:55:21 +01:00
Exposing 'DRIVELIST_FILTER_SYSTEM_DRIVES' as a cmake variable
Makes the filtering-behaviour userconfigureable during compile-time. This way its easier to configure the imager for flashing SATA or NVME Drives installed in your system (because of lack of adapters), or if the drives are (accidentally) labled as systemdrives by drivelist.
This commit is contained in:
parent
4378127872
commit
a44b9ae856
2 changed files with 8 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
|||
cmake_minimum_required(VERSION 3.9.4)
|
||||
OPTION (ENABLE_CHECK_VERSION "Check for version updates" ON)
|
||||
OPTION (ENABLE_TELEMETRY "Enable sending telemetry" ON)
|
||||
OPTION (DRIVELIST_FILTER_SYSTEM_DRIVES "Filter System drives from displayed drives" ON)
|
||||
|
||||
project(rpi-imager LANGUAGES CXX C)
|
||||
set(IMAGER_VERSION_MAJOR 1)
|
||||
|
@ -164,6 +165,13 @@ else()
|
|||
add_definitions(-DCHECK_VERSION_DEFAULT=false)
|
||||
endif()
|
||||
|
||||
if(DRIVELIST_FILTER_SYSTEM_DRIVES)
|
||||
# Hide system drives from list
|
||||
add_definitions(-DDRIVELIST_FILTER_SYSTEM_DRIVES=true)
|
||||
else()
|
||||
add_definitions(-DDRIVELIST_FILTER_SYSTEM_DRIVES=false)
|
||||
endif()
|
||||
|
||||
# Because dependencies are typically not available by default on Windows, build bundled code
|
||||
if (WIN32)
|
||||
# Target Windows 7 (needed for drivelist module)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue