Skip to content

Commit

Permalink
Merge pull request #3800 from Autodesk/donnels/cleanup_test_and_gulrak
Browse files Browse the repository at this point in the history
Update googletest & gulrak (filesystem)
  • Loading branch information
seando-adsk authored Jun 3, 2024
2 parents ee1f496 + ba3d4ff commit 3c91522
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 22 deletions.
8 changes: 7 additions & 1 deletion cmake/googletest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,13 @@ macro(fetch_googletest)
file(TO_CMAKE_PATH ${CMAKE_MAKE_PROGRAM} CMAKE_MAKE_PROGRAM)

# Set some options used when compiling googletest.
set(CMAKE_CXX_STANDARD 11)

# USD updated to c++17 for USD v23.11
if(USD_VERSION VERSION_GREATER_EQUAL "0.23.11")
set(CMAKE_CXX_STANDARD 17)
else()
set(CMAKE_CXX_STANDARD 11)
endif()
set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
Expand Down
1 change: 1 addition & 0 deletions cmake/googletest_download.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ExternalProject_Add(googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.10.0
GIT_CONFIG advice.detachedHead=false
GIT_SHALLOW TRUE
SOURCE_DIR "${GOOGLETEST_BUILD_ROOT}/googletest-src"
BINARY_DIR "${GOOGLETEST_BUILD_ROOT}/googletest-build"
CMAKE_ARGS
Expand Down
19 changes: 6 additions & 13 deletions cmake/gulrak.cmake
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.
Expand All @@ -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,
Expand All @@ -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
)
endif()

FetchContent_MakeAvailable(${CONTENT_NAME})
FetchContent_MakeAvailable(gulrak)
2 changes: 0 additions & 2 deletions lib/mayaUsd/fileio/jobs/readJob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@
#include <maya/MStatus.h>
#include <maya/MTime.h>

#include <ghc/filesystem.hpp>

#include <map>
#include <string>
#include <unordered_map>
Expand Down
2 changes: 0 additions & 2 deletions lib/usd/translators/shading/mtlxFileTextureReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
#include <maya/MPlug.h>
#include <maya/MStatus.h>

#include <ghc/filesystem.hpp>

PXR_NAMESPACE_OPEN_SCOPE

class MtlxUsd_FileTextureReader : public MtlxUsd_BaseReader
Expand Down
2 changes: 0 additions & 2 deletions lib/usd/translators/shading/mtlxFileTextureWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@
#include <maya/MStatus.h>
#include <maya/MString.h>

#include <ghc/filesystem.hpp>

#include <regex>

PXR_NAMESPACE_OPEN_SCOPE
Expand Down
2 changes: 0 additions & 2 deletions lib/usd/translators/shading/mtlxImageReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
#include <maya/MPlug.h>
#include <maya/MStatus.h>

#include <ghc/filesystem.hpp>

PXR_NAMESPACE_OPEN_SCOPE

class MtlxUsd_ImageReader : public MtlxUsd_BaseReader
Expand Down

0 comments on commit 3c91522

Please sign in to comment.