Browse Source

CMake: Set CMP0177 to NEW

Explicitly select normalized install() DESTINATION path behavior
introduced in CMake 3.31. This removes redundant path components
such as "." from install destinations while preserving their
installation locations and reduces warnings on Windows-x64 builds.

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
ee2aa0cbbf
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

@ -1,5 +1,8 @@ @@ -1,5 +1,8 @@
message(STATUS "cmake version: ${CMAKE_VERSION}")
cmake_minimum_required(VERSION 3.17.0)
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.31")
cmake_policy(SET CMP0177 NEW)
endif()
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")

Loading…
Cancel
Save