]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
spns #41486 - normalise CMAKE_GENERATOR
authorNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 29 Apr 2024 15:45:32 +0000 (17:45 +0200)
committerNabil Ghodbane <nabil.ghodbane@cea.fr>
Mon, 29 Apr 2024 15:45:32 +0000 (17:45 +0200)
src/compilation.py

index b8e84bdbbcf96e4fa94e2b2348f1e1cd5410b319..a09498ce9eed4e02dbf7bb571e486e258a3bd728 100644 (file)
@@ -134,8 +134,7 @@ class Builder:
         # In case CMAKE_GENERATOR is defined in environment, 
         # use it in spite of automatically detect it
         if 'cmake_generator' in self.config.APPLICATION:
-            cmake_option += " -DCMAKE_GENERATOR=\"%s\"" \
-                                       % self.config.APPLICATION.cmake_generator
+            cmake_option += " -G %s -A x64 " % self.config.APPLICATION.cmake_generator
         command = ("cmake %s -DCMAKE_INSTALL_PREFIX=%s %s" %
                             (cmake_option, self.install_dir, self.source_dir))