Skip to content

Commit

Permalink
Elimenated clang compilation warnings "argument unused during compila…
Browse files Browse the repository at this point in the history
  • Loading branch information
oleg68 authored Nov 29, 2024
1 parent dc17d47 commit 6eeb863
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 22 deletions.
16 changes: 16 additions & 0 deletions cmake/AddCpuOptions.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2006 Milan Digital Audio LLC
# Copyright 2009-2024 GrandOrgue contributors (see AUTHORS)
# License GPL-2.0 or later
# (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).

include(${CMAKE_SOURCE_DIR}/cmake/AddCXXOption.cmake)

if(CMAKE_SYSTEM_PROCESSOR STREQUAL "x86_64" OR CMAKE_SYSTEM_PROCESSOR STREQUAL "x86")
add_cxx_option(-mmmx)
add_cxx_option(-msse)
add_cxx_option(-msse2)
add_cxx_option(-msse3)
endif()

add_cxx_option(-mstackrealign)

8 changes: 1 addition & 7 deletions src/grandorgue/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@
include(${CMAKE_SOURCE_DIR}/cmake/AddLinkerOption.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/CopyWxTranslations.cmake)
include(${CMAKE_SOURCE_DIR}/cmake/CopyDependencies.cmake)

add_option(-mmmx)
add_option(-msse)
add_option(-msse2)
add_option(-msse3)

add_option(-mstackrealign)
include(${CMAKE_SOURCE_DIR}/cmake/AddCpuOptions.cmake)

find_package(wxWidgets REQUIRED html net adv core base)
include(${wxWidgets_USE_FILE})
Expand Down
8 changes: 1 addition & 7 deletions src/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
add_option(-mmmx)
add_option(-msse)
add_option(-msse2)
add_option(-msse3)

add_option(-mstackrealign)

include(${CMAKE_SOURCE_DIR}/cmake/AddCpuOptions.cmake)
include(UsewxWidgets)
include_directories(${CMAKE_BINARY_DIR}/src/core/go_defs.h ${CMAKE_SOURCE_DIR}/src/core)

Expand Down
10 changes: 2 additions & 8 deletions src/tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,8 @@
# Copyright 2006 Milan Digital Audio LLC
# Copyright 2009-2023 GrandOrgue contributors (see AUTHORS)
# Copyright 2009-2024 GrandOrgue contributors (see AUTHORS)
# License GPL-2.0 or later (https://www.gnu.org/licenses/old-licenses/gpl-2.0.html).

add_option(-mmmx)
add_option(-msse)
add_option(-msse2)
add_option(-msse3)

add_option(-mstackrealign)

include(${CMAKE_SOURCE_DIR}/cmake/AddCpuOptions.cmake)
include(UsewxWidgets)

include_directories(${CMAKE_BINARY_DIR}/src/core/go_defs.h ${CMAKE_SOURCE_DIR}/src/core)
Expand Down

0 comments on commit 6eeb863

Please sign in to comment.