-
Notifications
You must be signed in to change notification settings - Fork 468
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmake.configureSettings does not distinguish PATH and STRING #1457
Comments
This may be a limitation of the map-style syntax of |
@bobbrow
To be honest, after reading documentation for two hours I'm still struggle to understand how should I pass CMake flags with -D, for an example I have such cmake command to run which is generated by other python script:
So I would like to pass it somehow to configuration settings. But I have no idea what to use. Some flags have special fields for them, like CMAKE_INSTALL_PREFIX, some of them are not. I've tried to understand the connection between May I ask you for a help here? What is the meaning behind cmake.configureSettings and cmake.configureArgs, why do we need both and how should be process those -D flags? I also found probably the same issue on Stack Overflow: check the answer and the discussion below it about setting path to Qt |
There's actually no technical reason prohibiting you from passing -D with configureArgs. I believe that warning was written by vector-of-bool when he started this project and we haven't spent much time in the area yet. Based on what I see in the code I think it was to avoid conflicts between some of the "special" settings you mentioned. These conflicts are resolved if you use configureSettings, but not when you use configureArgs. I suspect it is easier to advise not to use configureArgs for I think a more correct warning would be not to use configureArgs to set the following properties:
|
Starting with version 1.13.28 tomorrow |
Brief Issue Summary
CMake tool treats "cmake.configureSettings" as strings and append ":STRING" in generated commandlines. This causes passing path in the command line impossible.
Expected:
Apparent Behavior:
Generated CMake command be like "-DXXX_PATH:STRING=/aaa/bbb/..." and CMake tells it cannot find the library.
CMake Tools Log
Platform and Versions
The text was updated successfully, but these errors were encountered: