From cfa4cdc9a3c9c95d8a27df7f5ebaeedcaba569a6 Mon Sep 17 00:00:00 2001 From: Doug Nazar Date: Fri, 22 Jul 2022 11:05:14 -0400 Subject: [PATCH] Use add_compile_options instead of add_compile_definitions add_compile_definitions is not available until version 3.12. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 052792e4b..97dc6ae9a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,7 +43,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") set (CMAKE_CXX_STANDARD 17) set (CMAKE_CXX_STANDARD_REQUIRED ON) -add_compile_definitions(_FILE_OFFSET_BITS=64) +add_compile_options(-D_FILE_OFFSET_BITS=64) include(ConfigureBaseTargets) include(CheckPlatform)