From f0f9deb5b2a7823264c7353e835be0591234ebc7 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Fri, 24 Jun 2022 21:17:46 +0100 Subject: Fix CMake builds with -DBUILD_CXXLIBS=OFF (#360) --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 5487f97a..761dd49b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -219,7 +219,10 @@ if(BUILD_TESTING) endif() endif() if(BUILD_EXAMPLES) - set_target_properties(decode_file decode_file_cxx encode_file encode_file_cxx PROPERTIES FOLDER Examples) + set_target_properties(decode_file encode_file PROPERTIES FOLDER Examples) + if(BUILD_CXXLIBS) + set_target_properties(decode_file_cxx encode_file_cxx PROPERTIES FOLDER Examples) + endif() endif() if(BUILD_UTILS) set_target_properties(flacdiff flactimer PROPERTIES FOLDER Utils) -- cgit v1.2.1