cmake
I am trying to build clapack and run to a problem that I can't figure it out. After running the following line in cmd
1 2 3 4
|
cmake -G "Visual Studio 17 2022 " -T host = x64 ^
-DUSE_BLAS_WRAP = "yes" ^
-DCMAKE_INSTALL_PREFIX = " c: \ clapack-3.2.1-CMAKE " ^
..
| |
I get this error
"CMake Error: Parse error in command line argument: USE_BLAS_WRAP
Should be: VAR:type=value" |
Also I want to ad one path to the environmental variable using following lines
call powershell -command "$ oldpath = [System.Environment] :: GetEnvironmentVariable (\" Path \ ", \" Machine \ "); $ oldpath + = \"; c: \ vcpkg \ installed \ x64-windows \ bin \ "; [System.Environment] :: SetEnvironmentVariable (\" Path \ ", $ oldpath, \" Machine \ ")"
I know other ways of adding path to environmental variable but I want to know what is the problem here.
but the following error showed up.
At line:1 char:74
+ ... .Environment] :: GetEnvironmentVariable (" Path \ , " Machine \ ); $ ...
+ ~~~~~~~
Unexpected token 'Machine' in expression or statement.
At line:1 char:73
+ ... [System.Environment] :: GetEnvironmentVariable (" Path \ , " Machine ...
+ ~
Missing closing ')' in expression.
At line:1 char:84
+ ... ironment] :: GetEnvironmentVariable (" Path \ , " Machine \ ); $ oldp ...
+ ~
Unexpected token ')' in expression or statement.
At line:1 char:221
+ ... nment] :: SetEnvironmentVariable (" Path \ , $ oldpath, " Machine \ )
+ ~~~~~~~~~~~~~
The string is missing the terminator: ".
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnexpectedToken |
Thanks in advance for your help.
Last edited on
Do you have a CMakeLists.txt file?
I think this -DUSE_BLAS_WRAP = "yes"
should look like this -DUSE_BLAS_WRAP="yes"
@kbw Thanks for the answer. yes, I do.
@yanson Thanks , I tried -DUSE_BLAS_WRAP="yes" before posting the question but it didn't fix the problem.
Topic archived. No new replies allowed.