@@ -257,6 +257,11 @@ def layout(self):
257257 self .folders .build = str (self .options .get_safe ("buildFolder" ))
258258
259259 def generate (self ):
260+ if self .settings .os == "Windows" :
261+ for dep in self .dependencies .values ():
262+ for libdir in dep .cpp_info .bindirs :
263+ copy (self , "*.dll" , libdir , "../Basilisk" )
264+
260265 if self .options .get_safe ("pathToExternalModules" ):
261266 print (statusColor + "Including External Folder: " + endColor + str (self .options .pathToExternalModules ))
262267
@@ -386,7 +391,7 @@ def conan_create_mujoco(print_fn: Optional[Callable[[str], None]] = print):
386391 if print_fn is not None :
387392 print_fn (f"Package { ref } not found locally, creating it..." )
388393 # Run 'conan create' in the external recipe directory
389- subprocess .run ([sys .executable , "-m" , "conans.conan" , "create" , "." ], cwd = "./libs/mujoco" )
394+ subprocess .run ([sys .executable , "-m" , "conans.conan" , "create" , "." , "-s" , "compiler.cppstd=17" ], cwd = "./libs/mujoco" )
390395 else :
391396 if print_fn is not None :
392397 print_fn (f"Package { ref } already available, skipping creation." )
@@ -444,12 +449,13 @@ def conan_create_mujoco(print_fn: Optional[Callable[[str], None]] = print):
444449
445450 if args .mujocoReplay :
446451 print (f"{ statusColor } Building 'replay' tool, since '--mujocoReplay true' was used" )
447- subprocess .run ([sys .executable , "-m" , "conans.conan" , "build" , "." ], cwd = "./src/utilities/mujocoUtils" )
452+ subprocess .run ([sys .executable , "-m" , "conans.conan" , "build" , "." , "-s" , "compiler.cppstd=17" ], cwd = "./src/utilities/mujocoUtils" )
448453
449454 # run conan install
450455 conanCmdString = list ()
451456 conanCmdString .append (f'{ sys .executable } -m conans.conan install . --build=missing' )
452457 conanCmdString .append (' -s build_type=' + str (args .buildType ))
458+ conanCmdString .append (' -s compiler.cppstd=17' )
453459 optionsString = list ()
454460 if args .generator :
455461 optionsString .append (' -o "&:generator=' + str (args .generator ) + '"' )
@@ -477,7 +483,7 @@ def conan_create_mujoco(print_fn: Optional[Callable[[str], None]] = print):
477483 completedProcess = subprocess .run (conanCmdString , shell = True , check = True )
478484
479485 # run conan build
480- buildCmdString = f'{ sys .executable } -m conans.conan build . ' + '' .join (optionsString )
486+ buildCmdString = f'{ sys .executable } -m conans.conan build . -s compiler.cppstd=17 ' + '' .join (optionsString )
481487 print (statusColor + "Running:" + endColor )
482488 print (buildCmdString )
483489 completedProcess = subprocess .run (buildCmdString , shell = True , check = True )
0 commit comments