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.
1 parent edf7b7f commit ab0a145Copy full SHA for ab0a145
xmake/plugins/project/cmake/cmakelists.lua
@@ -370,9 +370,9 @@ function _add_project(cmakelists, outputdir)
370
end
371
-- Define a language-independant global compiler_id variable
372
if (languages and #languages > 0) then
373
- cmakelists:print("set(CMAKE_COMPILER_ID CMAKE_%s_COMPILER_ID)", _get_project_languages()[1])
+ cmakelists:print("set(CMAKE_COMPILER_ID ${CMAKE_%s_COMPILER_ID})", _get_project_languages()[1])
374
else
375
- cmakelists:print("set(CMAKE_COMPILER_ID CMAKE_C_COMPILER_ID)") -- C should be defined by default if not specified
+ cmakelists:print("set(CMAKE_COMPILER_ID ${CMAKE_C_COMPILER_ID})") -- C should be defined by default if not specified
376
377
cmakelists:print("")
378
0 commit comments