Skip to content

Commit

Permalink
CMake: make submodules check optional
Browse files Browse the repository at this point in the history
  • Loading branch information
redtide committed Mar 9, 2024
1 parent ff8ff93 commit 8eff587
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,16 @@ message(STATUS "Building Artist library for ${ARTIST_HOST_SYSTEM_NAME} ${CMAKE_H
# Module utilities
###############################################################################

include(BuildType) # Default build type.
include(GitUtilities) # git_submodule_check().
include(OptionEx) # Conditional based options, adding a [default: ON/OFF] to the documentation.
include(BuildType) # Default build type.
include(OptionEx) # Conditional based options, adding a [default: ON/OFF] to the documentation.
include(CheckIPOSupported)

if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
git_submodule_check(lib/external/libunibreak)
git_submodule_check(lib/infra)
if (CYCFI_ENABLE_GIT_SUBMODULE_CHECK)
if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/.git")
include(GitUtilities)
git_submodule_check(lib/external/libunibreak)
git_submodule_check(lib/infra)
endif()
endif()

if (CYCFI_ENABLE_LTO)
Expand Down

0 comments on commit 8eff587

Please sign in to comment.