Skip to content

Commit

Permalink
chore: fix build without any external projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Nov 6, 2023
1 parent 5b1134b commit 28e3ada
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/CMakeModules/CasparCG_Util.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ ENDFUNCTION()

# Mark a project as depending on all of the ExternalProjects, to ensure build order
FUNCTION(casparcg_add_build_dependencies PROJECT)
ADD_DEPENDENCIES (${PROJECT} ${CASPARCG_EXTERNAL_PROJECTS})
if (CASPARCG_EXTERNAL_PROJECTS)
ADD_DEPENDENCIES (${PROJECT} ${CASPARCG_EXTERNAL_PROJECTS})
endif()
ENDFUNCTION()

# CasparCG version of CMake `add_library`
Expand All @@ -31,8 +33,10 @@ FUNCTION (casparcg_add_library PROJECT)
${TBB_INCLUDE_PATH}
)

# Setup dependency on ExternalProject
ADD_DEPENDENCIES (${PROJECT} ${CASPARCG_EXTERNAL_PROJECTS})
if (CASPARCG_EXTERNAL_PROJECTS)
# Setup dependency on ExternalProject
ADD_DEPENDENCIES (${PROJECT} ${CASPARCG_EXTERNAL_PROJECTS})
endif()

ENDFUNCTION ()

Expand Down

0 comments on commit 28e3ada

Please sign in to comment.