You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting a build error, from CLion using the MinGW toolchain, on Windows only. Builds on Mac without issues.
mingw32-make.exe[2]: *** No rule to make target 'my-lib/x86_64-pc-windows-msvc/debug/libmy_lib.a', needed by '<path-to-executable>/my-app.exe'. Stop.
mingw32-make.exe[1]: *** [CMakeFiles\Makefile2:96: <path-to-app-project>/CMakeFiles/APP.dir/all] Error 2
It seems to be looking for a libmy_lib.a, when what is generated is my_lib.lib.
OK, so using the variable_watch command, I saw the wrong prefix and suffix used to generate LIB_FILE. Adding the following lines under if(WIN32) in CMakeCargo.cmake seems to have solved the issue:
I am getting a build error, from CLion using the MinGW toolchain, on Windows only. Builds on Mac without issues.
It seems to be looking for a
libmy_lib.a
, when what is generated ismy_lib.lib
.I have a top level
CMakeLists.txt
:The text was updated successfully, but these errors were encountered: