Skip to content

Commit

Permalink
libbladeRF: conditionally set CMake policy
Browse files Browse the repository at this point in the history
Allow for backward compatiblity with pre 3.20 versions of CMake by conditionally
setting CMake policy CMP0115
  • Loading branch information
rghilduta committed Mar 4, 2023
1 parent 7e26f5a commit 88d71a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion host/libraries/libbladeRF/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,9 @@ if(MSVC)
)
endif()

cmake_policy(SET CMP0115 OLD)
if(POLICY CMP0115)
cmake_policy(SET CMP0115 OLD)
endif(POLICY CMP0115)
add_library(libbladerf_shared SHARED ${LIBBLADERF_SOURCE})


Expand Down

0 comments on commit 88d71a1

Please sign in to comment.