Skip to content

Commit

Permalink
Set CMake policy CMP0067 to NEW. (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
rocka authored Nov 21, 2024
1 parent bac0557 commit c2d8c0f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/Fcitx5CompilerSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ if (POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()

if (POLICY CMP0067)
# make check_cxx_source_compiles honors CMAKE_CXX_STANDARD
cmake_policy(SET CMP0067 NEW)
endif()

if(ENABLE_COVERAGE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fprofile-arcs -ftest-coverage")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fprofile-arcs -ftest-coverage")
Expand Down

0 comments on commit c2d8c0f

Please sign in to comment.