Second one is correct. the second is the correct tense is the subjunctive form of the verb, it is used when you state that a situation is not real but a guess or a wish.
The first sentence is written in conditional, it doesn't state an imagitative situation but a conditional on a real possibility... like
Si hiciera sol... haría una barbacoa fuera.
If it was sunny... I would have a BBQ outside