-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update submodules iff no path given.
- Loading branch information
Showing
2 changed files
with
30 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,19 @@ | ||
include(initialize-submodules) | ||
|
||
add_submodule(fmt) | ||
if (NOT TARGET fmt) | ||
set(FMT_INSTALL OFF CACHE BOOL "" FORCE) | ||
mark_as_advanced(FMT_CMAKE_DIR FMT_CUDA_TEST FMT_DEBUG_POSTFIX FMT_DOC FMT_FUZZ FMT_INC_DIR FMT_INSTALL FMT_INSTALL | ||
FMT_LIB_DIR FMT_MODULE FMT_OS FMT_PEDANTIC FMT_PKGCONFIG_DIR FMT_SYSTEM_HEADERS FMT_TEST FMT_WERROR) | ||
endif () | ||
set(FMT_INSTALL OFF CACHE BOOL "" FORCE) | ||
mark_as_advanced(FMT_CMAKE_DIR FMT_CUDA_TEST FMT_DEBUG_POSTFIX FMT_DOC FMT_FUZZ FMT_INC_DIR FMT_INSTALL FMT_INSTALL | ||
FMT_LIB_DIR FMT_MODULE FMT_OS FMT_PEDANTIC FMT_PKGCONFIG_DIR FMT_SYSTEM_HEADERS FMT_TEST FMT_WERROR) | ||
|
||
|
||
# googletest library | ||
if (${PROJECT_NAME}_BUILD_TESTING) | ||
add_submodule(gtest googletest) | ||
if (NOT TARGET gtest) | ||
|
||
# Prevent GoogleTest from overriding our compiler/linker options | ||
# when building with Visual Studio | ||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
set(BUILD_GTEST ON CACHE BOOL "" FORCE MARK) | ||
set(BUILD_GMOCK ON CACHE BOOL "" FORCE) | ||
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) | ||
mark_as_advanced(BUILD_GTEST BUILD_GMOCK INSTALL_GTEST) | ||
endif() | ||
# googletest library | ||
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) | ||
set(BUILD_GTEST ON CACHE BOOL "" FORCE MARK) | ||
set(BUILD_GMOCK ON CACHE BOOL "" FORCE) | ||
set(INSTALL_GTEST OFF CACHE BOOL "" FORCE) | ||
mark_as_advanced(BUILD_GTEST BUILD_GMOCK INSTALL_GTEST) | ||
add_submodule(googletest gtest) | ||
|
||
endif() |