diff --git a/cmake/BuildCodec2.cmake b/cmake/BuildCodec2.cmake index a3126019..b3b82f4f 100644 --- a/cmake/BuildCodec2.cmake +++ b/cmake/BuildCodec2.cmake @@ -38,7 +38,10 @@ set_target_properties(codec2 PROPERTIES IMPORTED_IMPLIB "${BINARY_DIR}/src/libcodec2${CMAKE_IMPORT_LIBRARY_SUFFIX}" ) -add_dependencies(build_codec2 build_lpcnetfreedv) +add_dependencies(build_codec2) +if(BOOTSTRAP_LPCNET) +add_dependencies(build_lpcnetfreedv) +endif(BOOTSTRAP_LPCNET) set(CODEC2_INCLUDE_DIRS ${CMAKE_BINARY_DIR}/codec2_src/src ${CMAKE_BINARY_DIR}/codec2_build) include_directories(${CODEC2_INCLUDE_DIRS})