Skip to content

Commit

Permalink
Apply compiler options only for main Mumble components
Browse files Browse the repository at this point in the history
  • Loading branch information
Krzmbrzl committed Dec 31, 2022
1 parent 7d42c9a commit 735514c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions cmake/compiler.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,10 @@ endif()

get_compiler_flags(
${WANTED_FEATURES}
OUTPUT_VARIABLE COMPILER_FLAGS
OUTPUT_VARIABLE MUMBLE_COMPILER_FLAGS
)

message(STATUS "Using (among others) the following compiler flags: ${COMPILER_FLAGS}")
add_compile_options(${COMPILER_FLAGS})
message(STATUS "Using (among others) the following compiler flags: ${MUMBLE_COMPILER_FLAGS}")

if(MSVC)
if(32_BIT)
Expand Down
2 changes: 2 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ find_pkg(OpenSSL

find_pkg(Protobuf REQUIRED)

add_compile_options(${MUMBLE_COMPILER_FLAGS})

add_library(shared STATIC)

set_property(TARGET shared PROPERTY INTERPROCEDURAL_OPTIMIZATION ${lto})
Expand Down

0 comments on commit 735514c

Please sign in to comment.