diff --git a/cmake/external.cmake b/cmake/external.cmake index 00d67a73..46002def 100644 --- a/cmake/external.cmake +++ b/cmake/external.cmake @@ -90,7 +90,7 @@ macro(add_cmake_dependency) add_dummy_target(${TARGET_ARG_NAME}) else() message(STATUS " ${TARGET_ARG_NAME}: Building ${TARGET_ARG_VERSION} from source") - if (TARGET_ARG_GIT_REPOSITORY) + if(TARGET_ARG_GIT_REPOSITORY) ExternalProject_Add( ${TARGET_ARG_NAME} DEPENDS ${TARGET_ARG_DEPENDS} diff --git a/external/CMakeLists.txt b/external/CMakeLists.txt index ee89bdae..cb91db11 100644 --- a/external/CMakeLists.txt +++ b/external/CMakeLists.txt @@ -64,18 +64,12 @@ if(zenohd IN_LIST EXTERNAL_PROJECTS_LIST) endif() set(GIT_TAG "10176b911096cb92b8ee46bc491b78079ee26c20") -add_cmake_dependency( - NAME zenohc - DEPENDS zenohd - URL "https://github.com/eclipse-zenoh/zenoh-c/archive/${GIT_TAG}.zip" - -) +add_cmake_dependency(NAME zenohc DEPENDS zenohd URL "https://github.com/eclipse-zenoh/zenoh-c/archive/${GIT_TAG}.zip") set(GIT_TAG "c0b7adb077cbf0b7b0cd04addb6de741b338fc49") add_cmake_dependency( NAME zenohcxx - DEPENDS zenohc - URL "https://github.com/eclipse-zenoh/zenoh-cpp/archive/${GIT_TAG}.zip" + DEPENDS zenohc URL "https://github.com/eclipse-zenoh/zenoh-cpp/archive/${GIT_TAG}.zip" SOURCE_SUBDIR install )