Skip to content

Commit

Permalink
Prevent useless link with pythonXX_d.lib in Debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hpwxf authored and RUrlus committed Sep 4, 2021
1 parent d68389a commit 26a31fd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/carma_bits/cnalloc.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#ifndef INCLUDE_CARMA_BITS_CNALLOC_H_
#define INCLUDE_CARMA_BITS_CNALLOC_H_

// pybind11 include required even if not explicitly used
// to prevent link with pythonXX_d.lib on Win32
// (cf Py_DEBUG defined in numpy headers and https://github.com/pybind/pybind11/issues/1295)
#include <pybind11/pybind11.h>
#define NPY_NO_DEPRECATED_API NPY_1_14_API_VERSION
#include <numpy/arrayobject.h>
#include <numpy/ndarraytypes.h>
Expand Down

0 comments on commit 26a31fd

Please sign in to comment.