Closed PauloCarvalhoRJ closed 3 weeks ago
Hi @PauloCarvalhoRJ thanks gor the report
This is because the method expects a list of strings to be passed, not the one string itself . Could you try adding the []
list, see if it works?
So something like cli_args=["-B"+os.path.join(self.build_folder)]
Thanks!
Hello, @RubenRBS
Right on! I got new errors, but the CMake command is now well-formed.
I suspected of something like that, but I had no clue as to what. Now that you mentioned it, it's indeed there in the docs, the little "list" word that I mistakenly didn't interpret as refering to the data structure. Anyway, as a side note, that's a fine example as to why implicit conversions are best avoided: https://stackoverflow.com/questions/2346083/why-implicit-conversion-is-harmful-in-c .
Compiling errors are always better than bugs because they are immediately visible for you to correct.
I mean, if the Python interpreter had at least warned me, I could have identified my mistake in earliest.
Thank you very much for the heads up,
PC
Hello,
So, I have recipe code like this:
because I need to build a given library in a sub-folder of the main build directory. The
-B
CMake option allows me to do just that (https://stackoverflow.com/questions/18826789/cmake-how-to-set-the-build-directory-to-be-different-than-source-directory). However, Conan seems to issue an ill-formed command:Notice the undue whitespaces between each character which obviously results in a CMake error. I'm using Conan 2.3.2.
Thanks,
PC
Have you read the CONTRIBUTING guide?