diff --git a/port/libusb/CMakeLists.txt b/port/libusb/CMakeLists.txt index 9a4027bf2..e2cbe8000 100644 --- a/port/libusb/CMakeLists.txt +++ b/port/libusb/CMakeLists.txt @@ -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 diff --git a/test/pts/CMakeLists.txt b/test/pts/CMakeLists.txt index b9629ecba..8ded2f31b 100644 --- a/test/pts/CMakeLists.txt +++ b/test/pts/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required (VERSION 3.5) +cmake_minimum_required (VERSION 3.12) project(PTS) # fink pkgconfig