libusb: fix build with older CMake < 3.12

This commit is contained in:
Matthias Ringwald 2021-02-18 10:55:47 +01:00
parent 5403525e24
commit 4198a07c2c
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ if(PORTAUDIO_FOUND)
include_directories(${PORTAUDIO_INCLUDE_DIRS})
link_directories(${PORTAUDIO_LIBRARY_DIRS})
link_libraries(${PORTAUDIO_LIBRARIES})
add_compile_definitions(HAVE_PORTAUDIO)
# CMake 3.12 - add_compile_definitions(HAVE_PORTAUDIO)
SET(CMAKE_C_FLAGS "-DHAVE_PORTAUDIO")
endif()
# extra compiler warnings

View File

@ -1,4 +1,4 @@
cmake_minimum_required (VERSION 3.5)
cmake_minimum_required (VERSION 3.12)
project(PTS)
# fink pkgconfig