Skip to content

Commit 1e89a52

Browse files
authored
Use older cmake command line syntax for compatibility (pyccel#2136)
Use older cmake command line syntax for compatibility with older CMake versions (up to 3.13). This allows tests to run in https://github.com/pyccel/pyccel-cuda. Fixes pyccel#2135
1 parent fdf1329 commit 1e89a52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ We recommend using GFortran/GCC and Open-MPI.
4646

4747
Pyccel also depends on several Python3 packages, which are automatically downloaded by pip, the Python Package Installer, during the installation process. In addition to these, unit tests require additional packages which are installed as optional dependencies with pip, while building the documentation requires [Sphinx](http://www.sphinx-doc.org/).
4848

49-
In order to install Pyccel from source, CMake is additionally required to build the gFTL dependence.
49+
In order to install Pyccel from source, CMake (>=3.13) is additionally required to build the gFTL dependence.
5050

5151
### Linux Debian-Ubuntu-Mint
5252

install_scripts/hook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def initialize(self, version, build_data):
4141
# Build gFTL for installation
4242
gFTL_folder = (Path(__file__).parent.parent / 'pyccel' / 'extensions' / 'gFTL').absolute()
4343
subprocess.run([shutil.which('cmake'), '-S', str(gFTL_folder), '-B', str(gFTL_folder / 'build'),
44-
'--install-prefix', str(gFTL_folder / 'install')], cwd = gFTL_folder, check=True)
44+
f'-DCMAKE_INSTALL_PREFIX={gFTL_folder / "install"}'], cwd = gFTL_folder, check=True)
4545
subprocess.run([shutil.which('cmake'), '--build', str(gFTL_folder / 'build')], cwd = gFTL_folder, check=True)
4646
subprocess.run([shutil.which('cmake'), '--install', str(gFTL_folder / 'build')], cwd = gFTL_folder, check=True)
4747

0 commit comments

Comments
 (0)