Open
Conversation
These changes are Apache 2.0
* CMAKE_BUILD_TYPE will default to Release if empty (forced).
* DAZ_STUDIO_EXE_DIR, DAZ_SDK_DIR, ALEMBIC_DIR, FBX_SDK_DIR, IMATH_DIR, OPENSUBDIV_DIR: If paths are not empty, leave them alone. If they're empty, try and auto detect default install paths & fill if present. Related original code have been moved or replaced.
* Added example paths for Windows platforms for the above variables.
* QT_BINARY_DIR : Auto-populates if DAZ_SDK_DIR has been correctly set. Will ignore the field if text has been detected in case custom changes are made on purpose.
* QT_BINARY_DIR : Edited popup description to reflect that this is supposed to point to the DAZ SDK's Qt exes.
* QT_IMPORTS_DIR : Force set the path & description to explain that this is not in use by DazToUnreal. By default it used to point to a Daz developer's private folder.
* QT_IMPORTS_DIR : Now hidden from default view, and should only be visible when advanced is toggled on.
* QT_DOC_DIR : Now auto-populates & points to Daz SDK's copy. Untested if this has any effect.
* OPENSUBDIV_INCLUDE now auto-points to the /include subfolder of OPENSUBDIV_DIR following OpenSubdiv's expected include installed location.
* OPENSUBDIV_LIB now points to ${OPENSUBDIV_DIR}/lib/osdCPU.lib following OpenSubdiv's expected lib installed location.
The above CMake file has been tested and confirmed as working when tested with CMake (gui) v3.24.1 on Windows 10 for both DazToUnreal 2023 v1.2 (2023.1.2.63) and DazToUnreal v5.2.1.207 with Visual Studio 2019.
Default folders checked on windows for non-Daz components ALEMBIC_DIR, FBX_SDK_DIR, IMATH_DIR, OPENSUBDIV_DIR are either Program Files or Program Files (x86) as appropriate based on the default install/compile-to locations for each component.
C:\dev\ is also checked if the above checks fail.
Contributor
|
Thank you for your submission! It is currently breaking support for my pre-built release of OpenSubdiv: |
Updated the (Windows) folder detection logic for Alembic, FBX SDK, Imath and OpenSubdiv so that by default it will now search through three default locations using a foreach loop. WIN_PROGRAM_FILES "C:/Program Files" WIN_PROGRAM_FILES_X86 "C:/Program Files (x86)" WIN_DEV_FOLDER "C:/dev"
Author
|
Thanks @danielbui78 , I have just updated the (Windows) folder detection logic for This should make it more flexible for users too since they can now customise one of the three vars (i.e. Please let me know if this doesn't work on your end. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
These changes are Apache 2.0
CMAKE_BUILD_TYPEwill default to Release if empty (forced).DAZ_STUDIO_EXE_DIR,DAZ_SDK_DIR,ALEMBIC_DIR,FBX_SDK_DIR,IMATH_DIR,OPENSUBDIV_DIR: If paths are not empty, leave them alone. If they're empty, try and auto detect default install paths & fill if present (Windows OS only). Related original code have been moved or replaced.QT_BINARY_DIR: Auto-populates ifDAZ_SDK_DIRhas been correctly set. Will ignore the field if text has been detected in case custom changes are made on purpose.QT_BINARY_DIR: Edited popup description to reflect that this is supposed to point to the DAZ SDK's Qt exes.QT_IMPORTS_DIR: Force set the path & description to explain that this is not in use by DazToUnreal. By default it used to point to a Daz developer's private folder.QT_IMPORTS_DIR: Now hidden from default view, and should only be visible when advanced is toggled on.QT_DOC_DIR: Now auto-populates & points to Daz SDK's copy. Untested if this has any effect.OPENSUBDIV_INCLUDEnow auto-points to the/includesubfolder of${OPENSUBDIV_DIR}following OpenSubdiv's expected include installed location.OPENSUBDIV_LIBnow points to${OPENSUBDIV_DIR}/lib/osdCPU.libfollowing OpenSubdiv's expected lib installed location.The above changes have been tested and confirmed as working when tested with CMake (gui) v3.24.1 on Windows 10 for both DazToUnreal 2023 v1.2 (2023.1.2.63) and DazToUnreal v5.2.1.207 with Visual Studio 2019.
Default folders checked on windows for non-Daz libraries
ALEMBIC_DIR,FBX_SDK_DIR,IMATH_DIR,OPENSUBDIV_DIRare eitherC:/Program Files/orC:/Program Files (x86)/as appropriate based on their default install/compile-to locations.C:/dev/is also checked if the above checks fail.