diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-09 00:56:13 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-09 00:56:13 +0300 |
commit | 583620302a5d7a9577b342ff3c55926805f4ae23 (patch) | |
tree | 74150d49596a0db52e21eee19fa10eb54cb319f9 /project/cmake/build.py | |
parent | project.cmake: always enable CMAKE_EXPORT_COMPILE_COMMANDS (diff) | |
download | cmake-common-583620302a5d7a9577b342ff3c55926805f4ae23.tar.gz cmake-common-583620302a5d7a9577b342ff3c55926805f4ae23.zip |
project.cmake: use -DVAR instead of -D VAR
This should look prettier in the logs + it's explicitly allowed in the
manual.
Diffstat (limited to 'project/cmake/build.py')
-rw-r--r-- | project/cmake/build.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/project/cmake/build.py b/project/cmake/build.py index e4c7ab9..3c4853d 100644 --- a/project/cmake/build.py +++ b/project/cmake/build.py @@ -88,18 +88,18 @@ class GenerationPhase: librarydir = self.platform.boost_librarydir(self.configuration) librarydir = os.path.join(self.boost_dir, librarydir) return [ - '-D', f'BOOST_ROOT={root}', - '-D', f'BOOST_LIBRARYDIR={librarydir}', + f'-DBOOST_ROOT={root}', + f'-DBOOST_LIBRARYDIR={librarydir}', ] @staticmethod def _cmake_extra_args(): - return ['-D', 'CMAKE_EXPORT_COMPILE_COMMANDS=ON'] + return ['-DCMAKE_EXPORT_COMPILE_COMMANDS=ON'] def _cmake_dir_args(self): args = [] if self.install_dir is not None: - args += ['-D', f'CMAKE_INSTALL_PREFIX={self.install_dir}'] + args += [f'-DCMAKE_INSTALL_PREFIX={self.install_dir}'] # Important! -H must come as the last parameter, older CMake versions # don't like it when it's not. args += [ |