PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6.03k stars 1.2k forks source link

CMake fails when building into directories with pathes that contain special characters #999

Open flashingsquare opened 4 years ago

flashingsquare commented 4 years ago

Description of Issue

Building with the python script into a directory with special characters fails with the following error:

Make Error at cmake/macros/Private.cmake:656 (if):
  if given arguments:
    ";arch;tf;" "MATCHES" ";/home/knud/src/c++/phanes/thirdparty/USD/build/lib/libboost_python.so;"

The Problem: Cmake interprets the right hand side of MATCHES as a regex. In my case this fails for the ++ in c++. Replacing MATCHES with STREQUAL in cmake/macros/Private.cmake:656 solved the problem for me.

Steps to Reproduce

  1. On Linux build into a directory that contains a ++

System Information (OS, Hardware)

Fedora 29

Package Versions

v19.07 master branch

Build Flags

python ../../build_scripts/build_usd.py --materialx --alembic --hdf5 --openimageio --usdview --usd-imaging --ptex /home/knud/src/c++/phanes/thirdparty/USD/build/build_usdimaging

jilliene commented 4 years ago

Filed as internal issue #USD-5631