Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.3
-
None
-
macOS 10.15.7
CMake 3.20.1
pyside-setup 5.15.3 (from March 24th 2021)
-
-
58ac9b4ca4e67db1480c03f3fc84948d2dcb793f (pyside/pyside-setup/dev) 25d26714d8309134e0c73dbe9b7b72f107eedce3 (pyside/pyside-setup/6.1) 4205f6b65e10ad0707fc8f667f7b0f1349a28c93 (pyside/pyside-setup/6.1.0) 209d9ff229 (pyside/tqtc-pyside-setup/5.15)
Description
When building Shiboken 2 as standalone build on macOS, he setup script executes prepare_standalone_clang from main.py. As part of this function, CMake is invoked to retrieve the path to libclang by executing:
log.info('Finding path to the libclang shared library.') cmake_cmd = [ OPTION["CMAKE"], "-L", # Lists variables "-N", # Just inspects the cache (faster) "--build", # Specifies the build dir self.shiboken_build_dir ] out = run_process_output(cmake_cmd)
However, using --build in this fashion results in an error message from CMake:
CMake Error: Unknown argument --build CMake Error: Run 'cmake --help' for all supported options.
Apparently, the correct flag to use is -B instead of --build.
Attachments
Issue Links
- is duplicated by
-
PYSIDE-1699 Failed to find libclang path by cmake
- Closed