Skip to content

Commit

Permalink
Don't download additional dependencies if you are a submodule (surge-…
Browse files Browse the repository at this point in the history
…synthesizer#34)

This should have been part of surge-synthesizer#33 but I forgot to add it there.
  • Loading branch information
haenkel authored Dec 10, 2022
1 parent 4ea391f commit a0ce9e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ project(sst-filters VERSION 0.5 LANGUAGES C CXX)

set(CMAKE_CXX_STANDARD 17)

include(cmake/CPM.cmake)

add_library(${PROJECT_NAME} INTERFACE)
target_include_directories(${PROJECT_NAME} INTERFACE include)

Expand All @@ -22,6 +20,7 @@ target_link_libraries(${PROJECT_NAME}-extras INTERFACE ${PROJECT_NAME})
get_directory_property(parent_dir PARENT_DIRECTORY)
if ("${parent_dir}" STREQUAL "")
set(is_toplevel 1)
include(cmake/CPM.cmake)
else ()
set(is_toplevel 0)
endif ()
Expand Down

0 comments on commit a0ce9e8

Please sign in to comment.