diff options
author | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-08-30 23:17:59 -0500 |
---|---|---|
committer | Flu0r1ne <flur01ne@flu0r1ne.net> | 2021-08-30 23:17:59 -0500 |
commit | 172f4b21045a424f38145a89ba2bfcce304c3761 (patch) | |
tree | 3c33bf1dcfb3e58aa298ad75275953b74bf51637 /adapters/gtest/templating.go | |
parent | 6e23fd63605ee2f599413d7e5e9d3a7a75cf4112 (diff) | |
download | deb-planr-172f4b21045a424f38145a89ba2bfcce304c3761.tar.xz deb-planr-172f4b21045a424f38145a89ba2bfcce304c3761.zip |
Fix bug where paths with spaces would fail to build due to lack of CMake escape
Diffstat (limited to 'adapters/gtest/templating.go')
-rw-r--r-- | adapters/gtest/templating.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/adapters/gtest/templating.go b/adapters/gtest/templating.go index a78eaf8..c49f170 100644 --- a/adapters/gtest/templating.go +++ b/adapters/gtest/templating.go @@ -42,18 +42,18 @@ func genCmake(out string, units []cmakeUnit) { func unitTemplate() *template.Template { tmpl, err := template.New("gtest_unit").Parse(` add_executable( - {{.Cname}} - {{.File}} + "{{.Cname}}" + "{{.File}}" {{.Srcs}} ) target_link_libraries( - {{.Cname}} + "{{.Cname}}" gtest_main ) gtest_discover_tests( - {{.Cname}} + "{{.Cname}}" ) `) |