Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Set minimum CMake required version for this project.
cmake_minimum_required(VERSION 3.13 FATAL_ERROR)
cmake_minimum_required(VERSION 3.21 FATAL_ERROR)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

compare https://cmake.org/cmake/help/latest/variable/PROJECT_IS_TOP_LEVEL.html ... it's not entirely necessary, though


# Define a C++ project.
project(RtAudio LANGUAGES CXX)
Expand Down Expand Up @@ -306,6 +306,10 @@ endif()
string(REPLACE ";" " " apilist "${API_LIST}")
message(STATUS "Compiling with support for: ${apilist}")

if(NOT PROJECT_IS_TOP_LEVEL)
return()
endif()

# PkgConfig file
string(REPLACE ";" " " req "${PKGCONFIG_REQUIRES}")
string(REPLACE ";" " " req_libs "${LIBS_REQUIRES}")
Expand Down
Loading