BUILD_HIDTEST->HIDAPI_BUILD_HIDTEST to have consistent custom prefix

This commit is contained in:
Ihor Dutchak
2021-01-15 15:15:24 +02:00
parent 8ae8ffb2cf
commit c393b88dcf
+2 -2
View File
@@ -33,7 +33,7 @@ set(BUILD_HIDTEST_DEFAULT OFF)
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(BUILD_HIDTEST_DEFAULT ON)
endif()
option(BUILD_HIDTEST "Build small console test application hidtest" ${BUILD_HIDTEST_DEFAULT})
if(BUILD_HIDTEST)
option(HIDAPI_BUILD_HIDTEST "Build small console test application hidtest" ${BUILD_HIDTEST_DEFAULT})
if(HIDAPI_BUILD_HIDTEST)
add_subdirectory(hidtest)
endif()