Browse Source

Use #cmakedefine in place of -DHAVE_OPEN_MEMSTREAM=1

pull/122/head
Evan Miller 5 years ago
parent
commit
fff704ae39
  1. 4
      CMakeLists.txt
  2. 2
      config.h.in
  3. 1
      test/tempfile.h

4
CMakeLists.txt

@ -90,10 +90,6 @@ endif()
check_symbol_exists(open_memstream "stdio.h" HAVE_OPEN_MEMSTREAM)
if (HAVE_OPEN_MEMSTREAM)
extra_cxx_compiler_flag("-DHAVE_OPEN_MEMSTREAM=1")
endif()
cmake_push_check_state()
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} ${CUPS_CFLAGS}")
check_include_file_cxx(cups/raster.h HAVE_CUPS_RASTER_H)

2
config.h.in

@ -1,2 +1,4 @@
#define PACKAGE "@CMAKE_PROJECT_NAME@"
#define VERSION "@BRLASER_VERSION@"
#cmakedefine HAVE_OPEN_MEMSTREAM

1
test/tempfile.h

@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include "config.h"
class tempfile {
public:

Loading…
Cancel
Save