Skip to content

cmake: skip install code when embedded in other cmake build#479

Open
timblechmann wants to merge 1 commit intothestk:masterfrom
timblechmann:fix/cmake-prevent-install-for-master
Open

cmake: skip install code when embedded in other cmake build#479
timblechmann wants to merge 1 commit intothestk:masterfrom
timblechmann:fix/cmake-prevent-install-for-master

Conversation

@timblechmann
Copy link
Contributor

This is helpful when trying to embed rtaudio in e.g. via CPM/FetchContent.

This is helpful when trying to embed rtaudio in e.g. via
CPM/FetchContent.
@@ -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
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant