Skip to content

Fixed cmake generator that was using 'CMAKE_COMPILER_ID' #6439

Merged
waruqi merged 8 commits intoxmake-io:devfrom
PierreEVEN:fix-cmake_generator-wrong_cmake_var_compiler
May 16, 2025
Merged

Fixed cmake generator that was using 'CMAKE_COMPILER_ID' #6439
waruqi merged 8 commits intoxmake-io:devfrom
PierreEVEN:fix-cmake_generator-wrong_cmake_var_compiler

Conversation

@PierreEVEN
Copy link
Contributor

Fix previous merge that failed to fix issue with compiler detection (was not a regression, but neither a progress)

CMAKE_COMPILER_ID is not the right variable (but works in certain conditions)
The right one is CMAKE__CXX_COMPILER_ID

Now it should be the right one.

@waruqi
Copy link
Member

waruqi commented May 14, 2025

Which one is more correct? #6438

commit ab0a145
Author: PierreEVEN <spam@evenpierre.fr>
Date:   Wed May 14 11:16:49 2025 +0200

    fixed CMAKE_COMPILER_ID value that was set to CMAKE_<LANG>_COMPILER_ID instead of real value

commit edf7b7f
Author: PierreEVEN <spam@evenpierre.fr>
Date:   Wed May 14 11:06:42 2025 +0200

    Use project language to detect compiler ID
….com:PierreEVEN/xmake into fix-cmake_generator-wrong_cmake_var_compiler
@PierreEVEN
Copy link
Contributor Author

Which one is more correct? #6438

I've just fixed this PR which now handles any language so it's better in theory.
It should be ready for a merge now.

@waruqi waruqi added this to the v3.0.0 milestone May 16, 2025
@waruqi waruqi merged commit c6e3ca7 into xmake-io:dev May 16, 2025
22 checks passed
@PierreEVEN PierreEVEN deleted the fix-cmake_generator-wrong_cmake_var_compiler branch May 16, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants