File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.6.3...3.25 FATAL_ERROR )
22
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
3+ include ("${PROJECT_ROOT} /src/cmake/hidapi-policies.cmake" NO_POLICY_SCOPE )
94
105list (APPEND HIDAPI_PUBLIC_HEADERS "hidapi_libusb.h" )
116
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.6.3...3.25 FATAL_ERROR )
22
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
3+ include ("${PROJECT_ROOT} /src/cmake/hidapi-policies.cmake" NO_POLICY_SCOPE )
94
105add_library (hidapi_hidraw
116 ${HIDAPI_PUBLIC_HEADERS}
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.4.3...3.25 FATAL_ERROR )
22
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
3+ include ("${PROJECT_ROOT} /src/cmake/hidapi-policies.cmake" NO_POLICY_SCOPE )
94
105list (APPEND HIDAPI_PUBLIC_HEADERS "hidapi_darwin.h" )
116
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.6.3...3.25 FATAL_ERROR )
22
3- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
4- if (POLICY ${HIDAPI_CMAKE_POLICY} )
5- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
6- endif ()
7- endforeach ()
8- unset (HIDAPI_CMAKE_POLICY)
3+ include ("${PROJECT_ROOT} /src/cmake/hidapi-policies.cmake" NO_POLICY_SCOPE )
94
105add_library (hidapi_netbsd
116 ${HIDAPI_PUBLIC_HEADERS}
Original file line number Diff line number Diff line change @@ -26,12 +26,7 @@ project(hidapi VERSION "${VERSION}" LANGUAGES C)
2626
2727# Defaults and required options
2828
29- foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
30- if (POLICY ${HIDAPI_CMAKE_POLICY} )
31- cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
32- endif ()
33- endforeach ()
34- unset (HIDAPI_CMAKE_POLICY)
29+ include ("${PROJECT_ROOT} /src/cmake/hidapi-policies.cmake" NO_POLICY_SCOPE )
3530
3631if (NOT DEFINED HIDAPI_WITH_TESTS)
3732 set (HIDAPI_WITH_TESTS OFF )
Original file line number Diff line number Diff line change 1+ foreach (HIDAPI_CMAKE_POLICY CMP0156 CMP0179 CMP0181 CMP0200)
2+ if (POLICY ${HIDAPI_CMAKE_POLICY} )
3+ cmake_policy (SET ${HIDAPI_CMAKE_POLICY} NEW )
4+ endif ()
5+ endforeach ()
6+ unset (HIDAPI_CMAKE_POLICY)
You can’t perform that action at this time.
0 commit comments