Skip to content

Commit

Permalink
Fixes an issue with generation of the CMakeLists.txt file
Browse files Browse the repository at this point in the history
When CMakeLists.txt is generated quotes are not inserted before and after the path meaning that if there is a space in the SDK path cmake fails to generate the build files.
  • Loading branch information
SuperNinja-4965 committed Jan 22, 2021
1 parent 75d4a56 commit 5dc34ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pico_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,7 @@ def GenerateCMake(folder, params):
# seemingly a bit easier to handle than the backslashes

p = str(params.sdkPath).replace('\\','/')
p = '\"' + p + '\"'

file.write('set(PICO_SDK_PATH ' + p + ')\n\n')
file.write(cmake_header2)
Expand Down

0 comments on commit 5dc34ce

Please sign in to comment.