diff options
author | Cameron Cawley <ccawley2011@gmail.com> | 2022-06-24 21:17:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-24 22:17:46 +0200 |
commit | f0f9deb5b2a7823264c7353e835be0591234ebc7 (patch) | |
tree | 3f01ac261ae186a6fe0e636997c6c6df9a0daeb7 /CMakeLists.txt | |
parent | 287f777035d876754e6634704f759e6a42d85e8e (diff) | |
download | flac-f0f9deb5b2a7823264c7353e835be0591234ebc7.tar.gz |
Fix CMake builds with -DBUILD_CXXLIBS=OFF (#360)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
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) |