mirror of
https://github.com/aseprite/aseprite.git
synced 2024-10-04 13:59:46 +00:00
Remove cmake policies that aren't used anymore
This commit is contained in:
parent
00af963ccb
commit
700217c413
@ -9,15 +9,6 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
set(CMAKE_CXX_EXTENSIONS OFF) # We use -std=c++17 instead of -std=gnu++17 in macOS
|
||||
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
|
||||
|
||||
if(COMMAND cmake_policy)
|
||||
# CMP0003: Libraries linked via full path no longer produce linker search paths.
|
||||
#cmake_policy(SET CMP0003 NEW)
|
||||
if(CMAKE_MAJOR_VERSION GREATER 2)
|
||||
# CMP0046: Old behavior to silently ignore non-existent dependencies.
|
||||
cmake_policy(SET CMP0046 OLD)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(NOT CMAKE_BUILD_TYPE)
|
||||
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
|
||||
"Choose the type of build, options are:
|
||||
|
@ -14,5 +14,4 @@ if(NOT "${CUSTOM_WEBSITE_URL}" STREQUAL "")
|
||||
endif()
|
||||
|
||||
add_library(ver-lib info.c ${gen_ver_fn})
|
||||
add_dependencies(ver-lib generated_version_h)
|
||||
target_include_directories(ver-lib PRIVATE .. "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
Loading…
Reference in New Issue
Block a user