CMakeLists.txt

changeset 201
1bfa1cdffb02
parent 185
e83ec58cc458
--- a/CMakeLists.txt	Fri Feb 05 11:36:38 2021 +0200
+++ b/CMakeLists.txt	Mon Apr 10 10:42:45 2023 +0300
@@ -1,10 +1,11 @@
-cmake_minimum_required (VERSION 2.4)
+cmake_minimum_required (VERSION 3.2)
 cmake_policy (SET CMP0003 NEW)
 project (ZFC9000)
 string (TOLOWER ${CMAKE_PROJECT_NAME} TARGET_NAME)
 set(CMAKE_CXX_STANDARD 17)
 set(CMAKE_CXX_STANDARD_REQUIRED ON)
 set(CMAKE_CXX_EXTENSIONS OFF)
+add_definitions(-DCMAKE_PROJECT_NAME="${CMAKE_PROJECT_NAME}")
 
 add_library (huffman STATIC
 	huffman/bitreader.cpp
@@ -139,7 +140,7 @@
 endif()
 
 add_custom_target (make_hginfo_h
-	COMMAND python
+	COMMAND python3
 		"${CMAKE_SOURCE_DIR}/updaterevision/updaterevision.py"
 		"${CMAKE_CURRENT_BINARY_DIR}/hginfo.h")
 add_dependencies (${TARGET_NAME} make_hginfo_h)

mercurial