-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update googletest & gulrak (filesystem) #3800
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# | ||
# Copyright 2021 Autodesk | ||
# Copyright 2024 Autodesk | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
|
@@ -16,8 +16,6 @@ | |
|
||
include(FetchContent) | ||
|
||
set(CONTENT_NAME gulrak) | ||
|
||
set(FETCHCONTENT_QUIET OFF) | ||
|
||
# GULRAK_SOURCE_DIR : Set this to the directory where you have cloned gulrak filesystem repo, | ||
|
@@ -26,23 +24,18 @@ if(DEFINED GULRAK_SOURCE_DIR) | |
file(TO_CMAKE_PATH "${GULRAK_SOURCE_DIR}" GULRAK_SOURCE_DIR) | ||
message(STATUS "**** Building Gulrak From " ${GULRAK_SOURCE_DIR}) | ||
FetchContent_Declare( | ||
${CONTENT_NAME} | ||
gulrak | ||
URL ${GULRAK_SOURCE_DIR} | ||
) | ||
|
||
string(TOUPPER ${CONTENT_NAME} UPPERGULARK) | ||
mark_as_advanced(FETCHCONTENT_SOURCE_DIR_${UPPERGULARK}) | ||
mark_as_advanced(FETCHCONTENT_SOURCE_DIR_GULRAK) | ||
mark_as_advanced(FETCHCONTENT_UPDATES_DISCONNECTED_${UPPERGULARK}) | ||
|
||
else() | ||
message(STATUS "**** Building Gulrak From Github Repository.") | ||
FetchContent_Declare( | ||
${CONTENT_NAME} | ||
GIT_REPOSITORY https://github.com/gulrak/filesystem.git | ||
GIT_TAG 4e21ab305794f5309a1454b4ae82ab9a0f5e0d25 | ||
USES_TERMINAL_DOWNLOAD TRUE | ||
GIT_CONFIG advice.detachedHead=false | ||
gulrak | ||
URL https://github.com/gulrak/filesystem/archive/refs/tags/v1.5.14.zip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The previous version was 1.5.6 (which is what that git commit pointed to) which seems like a big jump to 1.5.14, but its not that really. There weren't all the dot releases in between. https://github.com/gulrak/filesystem/releases I also changed it so that it just downloads the release zip file instead of cloning the github repo. |
||
) | ||
endif() | ||
|
||
FetchContent_MakeAvailable(${CONTENT_NAME}) | ||
FetchContent_MakeAvailable(gulrak) |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,8 +59,6 @@ | |
#include <maya/MStatus.h> | ||
#include <maya/MTime.h> | ||
|
||
#include <ghc/filesystem.hpp> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. All these files aren't using filesystem, so removed the header. |
||
|
||
#include <map> | ||
#include <string> | ||
#include <unordered_map> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will skip the history which makes the download much smaller.