We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8bcd746 + c62291b commit 604ba83Copy full SHA for 604ba83
1 file changed
src/commands/BuildCommand.cpp
@@ -1150,6 +1150,14 @@ namespace vix::commands::BuildCommand
1150
vars.emplace_back("CMAKE_BUILD_TYPE", p.buildType);
1151
vars.emplace_back("CMAKE_EXPORT_COMPILE_COMMANDS", "ON");
1152
1153
+#ifndef _WIN32
1154
+ if (util::file_exists("/usr/bin/ar"))
1155
+ vars.emplace_back("CMAKE_AR", "/usr/bin/ar");
1156
+
1157
+ if (util::file_exists("/usr/bin/ranlib"))
1158
+ vars.emplace_back("CMAKE_RANLIB", "/usr/bin/ranlib");
1159
+#endif
1160
1161
if (opt.warningCheck)
1162
{
1163
const std::string cxxCompiler = warning_check_cxx_compiler();
0 commit comments