[Pkg-cmake-team] Bug#1025058: sample

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Nov 29 15:06:32 GMT 2022


 % cat CMakeLists.txt
cmake_minimum_required(VERSION 3.12.1 FATAL_ERROR)
project(p)

add_library(foo foo.cpp)

set(defs "-D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
-D__STDC_LIMIT_MACROS")
target_compile_definitions(foo PRIVATE ${defs})



More information about the Pkg-cmake-team mailing list