Skip to content

Commit

Permalink
Dealing with cmake bugs (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mustafa Kemal GILOR authored Nov 22, 2021
1 parent 561a5d8 commit 5d4363a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions cmake/modules/core/BuildVariant.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ function(hdk_set_build_variant)

if((CMAKE_CXX_COMPILER_ID MATCHES "[gG][nN][uU]") OR (CMAKE_C_COMPILER_ID MATCHES "[gG][nN][uU]"))
hdk_log_status("Toolchain: GNU (GCC) version ${CMAKE_CXX_COMPILER_VERSION}")
set(HADOUKEN_COMPILER CLANG PARENT_SCOPE)
include(core/DiagnosticFlags_GCC)
elseif((CMAKE_CXX_COMPILER_ID MATCHES "[cC][lL][aA][nN][gG]") OR (CMAKE_C_COMPILER_ID MATCHES "[cC][lL][aA][nN][gG]") )
hdk_log_status("Toolchain: LLVM (Clang) version ${CMAKE_CXX_COMPILER_VERSION}")
set(HADOUKEN_COMPILER GCC PARENT_SCOPE)
include(core/DiagnosticFlags_Clang)
else()
hdk_log_warn("Unable to determine toolchain")
Expand Down
2 changes: 0 additions & 2 deletions cmake/modules/core/DiagnosticFlags_Clang.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
# SPDX-License-Identifier: Apache 2.0
# ______________________________________________________

set(HADOUKEN_COMPILER CLANG PARENT_SCOPE)

# Clang 3.2 and above
set(CLANG_32_WARN_BUT_NO_ERROR "" )
set(CLANG_32_EXTENDED_WARNINGS "" )
Expand Down
2 changes: 0 additions & 2 deletions cmake/modules/core/DiagnosticFlags_GCC.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@
# see: https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html for
# all warning flag documentations used in this code

set(HADOUKEN_COMPILER GCC PARENT_SCOPE)

##########################################################
# GCC 3.4 and above
# ------------------------------------
Expand Down

0 comments on commit 5d4363a

Please sign in to comment.