+option (
+ BUILD_NATIVE_REPORT_TESTS
+ "Build the native-report fixture generator"
+ OFF
+)
+
+option (
+ BUILD_HLDS_PROFILE_TESTS
+ "Build the read-only HLDS E7 profile-selection tests"
+ OFF
+)
+
+set (
+ FRIIDUMP_BUILD_COMMIT
+ ""
+ CACHE STRING
+ "Full 40-character Git commit embedded in native compatibility reports"
+)
+
+if (FRIIDUMP_BUILD_COMMIT)
+ string (LENGTH "${FRIIDUMP_BUILD_COMMIT}" FRIIDUMP_BUILD_COMMIT_LENGTH)
+ if (NOT FRIIDUMP_BUILD_COMMIT_LENGTH EQUAL 40 OR FRIIDUMP_BUILD_COMMIT MATCHES "[^0-9A-Fa-f]")
+ message (FATAL_ERROR "FRIIDUMP_BUILD_COMMIT must be exactly 40 hexadecimal characters")
+ endif ()
+endif ()
+