Skip to content

Commit

Permalink
First party dependencies should not be marked as excluded from all or…
Browse files Browse the repository at this point in the history
… system
  • Loading branch information
Cliff Foster committed Feb 29, 2024
1 parent a60137d commit ac8d1ef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmake/idi/functions/idi_add_dependency.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ function(__idi_add_dependency IDI_DEP_NAME IDI_DEP_URL IDI_DEP_TAG IDI_DEP_THIRD
cpm_parse_option("${OPTION}")
set(${OPTION_KEY} "${OPTION_VALUE}")
endforeach()
add_subdirectory(${IDI_DEP_SOURCE_DIR} ${IDI_DEP_BINARY_DIR} EXCLUDE_FROM_ALL SYSTEM)
if (IDI_DEP_THIRD_PARTY)
add_subdirectory(${IDI_DEP_SOURCE_DIR} ${IDI_DEP_BINARY_DIR} EXCLUDE_FROM_ALL SYSTEM)
else()
add_subdirectory(${IDI_DEP_SOURCE_DIR} ${IDI_DEP_BINARY_DIR})
endif()
message(STATUS "Added dependency ${IDI_DEP_NAME}")
endfunction()

Expand Down

0 comments on commit ac8d1ef

Please sign in to comment.