Skip to content

Commit 600ea82

Browse files
committed
debug
1 parent 450808c commit 600ea82

File tree

2 files changed

+17
-10
lines changed

2 files changed

+17
-10
lines changed

CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,16 @@ FIND_NUMPY()
6262

6363
IF(WIN32)
6464
LINK_DIRECTORIES(${PYTHON_LIBRARY_DIRS})
65-
# Set default Windows build paths
66-
SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY
67-
${PROJECT_BINARY_DIR}/Bin
68-
CACHE PATH "Single directory for all libraries")
69-
SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
70-
${PROJECT_BINARY_DIR}/Bin
71-
CACHE PATH "Single directory for all executables")
72-
SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
73-
${PROJECT_BINARY_DIR}/Bin
74-
CACHE PATH "Sing$le directory for all archives")
65+
# # Set default Windows build paths
66+
# SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY
67+
# ${PROJECT_BINARY_DIR}/Bin
68+
# CACHE PATH "Single directory for all libraries")
69+
# SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY
70+
# ${PROJECT_BINARY_DIR}/Bin
71+
# CACHE PATH "Single directory for all executables")
72+
# SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY
73+
# ${PROJECT_BINARY_DIR}/Bin
74+
# CACHE PATH "Sing$le directory for all archives")
7575
ENDIF(WIN32)
7676

7777
# ----------------------------------------------------

include/eigenpy/user-type.hpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "eigenpy/numpy-type.hpp"
1010
#include "eigenpy/register.hpp"
1111

12+
#include <iostream>
13+
1214
namespace eigenpy
1315
{
1416
/// \brief Default cast algo to cast a From to To. Can be specialized for any types.
@@ -256,6 +258,11 @@ namespace eigenpy
256258
assert(to_typenum >= 0 && "to_typenum is not valid");
257259
assert(from_array_descr != NULL && "from_array_descr is not valid");
258260

261+
std::cout << "From: " << bp::type_info(typeid(From)).name() << " " << Register::getTypeCode<From>()
262+
<< " to: " << bp::type_info(typeid(To)).name() << " " << Register::getTypeCode<To>()
263+
<< "\n to_typenum: " << to_typenum
264+
<< std::endl;
265+
259266
if(call_PyArray_RegisterCastFunc(from_array_descr,
260267
to_typenum,
261268
static_cast<PyArray_VectorUnaryFunc *>(&eigenpy::internal::cast<From,To>)) < 0)

0 commit comments

Comments
 (0)