Skip to content

Commit

Permalink
cmake: Fix compiler id check for C++ only project.
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxdude42 committed Jan 4, 2025
1 parent de9344c commit 85b5924
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/SetCompilerOptionsFedora.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
#
# See the file LICENSE_FSF for licensing information.
#
if(NOT CMAKE_C_COMPILER_ID STREQUAL GNU)
if((CMAKE_C_COMPILER_ID AND NOT CMAKE_C_COMPILER_ID STREQUAL GNU) OR
(CMAKE_CXX_COMPILER_ID AND NOT CMAKE_CXX_COMPILER_ID STREQUAL GNU))
message(
FATAL_ERROR "The Fedora build type requires the use of the gcc compiler.")
endif()
Expand Down

0 comments on commit 85b5924

Please sign in to comment.