1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Turn off terrible new cmake 3.24+ default

This commit is contained in:
Jason Rhinelander 2023-10-26 17:09:01 -03:00
parent 6ebc812cda
commit a7a18868c7
No known key found for this signature in database
GPG key ID: C4992CE7A88D4262

View file

@ -1,5 +1,11 @@
cmake_minimum_required(VERSION 3.13...3.24) # 3.13 is buster's version
# Cmake 3.24+ breaks extraction timestamps by default, hurray, but the option to not break
# timestamps fails in cmake <3.24, extra hurray!
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.24)
cmake_policy(SET CMP0135 OLD)
endif()
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
# Has to be set before `project()`, and ignored on non-macos: