mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Added length check to pre_cmd
This commit is contained in:
@@ -336,7 +336,7 @@ def cmakeFactory(mod_name = None, gitMode = 'incremental', install = True, pre_c
|
||||
factory.addStep(MakeDirectory(dir=working_folder, haltOnFailure = True))
|
||||
factory.addStep(RemoveDirectory(dir="build/install_root", haltOnFailure = True))
|
||||
#
|
||||
if not pre_cmd[-1]=="&&": pre_cmd.append("&&")
|
||||
if len(pre_cmd>0) and not pre_cmd[-1]=="&&": pre_cmd.append("&&")
|
||||
if mod_name is not None:
|
||||
cmake_args = ["-DCOOLPROP_"+mod_name.upper()+"_MODULE=ON","-DBUILD_TESTING=ON"]+cmake_args
|
||||
|
||||
|
||||
Reference in New Issue
Block a user