Skip to content

Commit

Permalink
Update friction-common.cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
rodlie committed Dec 8, 2023
1 parent f21a39f commit a1b4c4c
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/cmake/friction-common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ set(CMAKE_AUTORCC ON)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

option(LINUX_DEPLOY "Linux Deploy" OFF)
option(WIN_DEPLOY "Windows Deploy" OFF)

if(UNIX)
add_compile_options(-Wall -Wextra -Wno-unused-private-field -Wno-deprecated-copy-with-user-provided-copy)
add_compile_options(-Wall -Wextra -Wno-unused-private-field)
if(NOT ${LINUX_DEPLOY})
add_compile_options(-Wno-deprecated-copy-with-user-provided-copy)
endif()
if(APPLE)
add_compile_options(-frtti)
endif()
Expand All @@ -42,9 +48,6 @@ if(MSVC)
add_definitions("/MP")
endif()

option(LINUX_DEPLOY "Linux Deploy" OFF)
option(WIN_DEPLOY "Windows Deploy" OFF)

if(UNIX AND NOT APPLE)
option(STATIC_FFMPEG "Link against static ffmpeg" OFF)
if(${STATIC_FFMPEG})
Expand Down

0 comments on commit a1b4c4c

Please sign in to comment.