File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,18 @@ if(PYTHON_VER VERSION_GREATER_EQUAL 3.8 AND PYTHON_VERSION VERSION_LESS 3.9)
39
39
endif ()
40
40
41
41
set (PYEXT_LIBRARY "${PYTHON_LIBRARIES} " )
42
-
42
+ message ( "PYTHON_LIBRARIES: " " ${PYTHON_LIBRARIES} " )
43
43
#Windows always uses optimized version of Python lib
44
44
if (WIN32 AND "${CMAKE_BUILD_TYPE} " STREQUAL "Debug" )
45
45
#get index of string "optimized" and increment it by 1 so index points at the path of the optimized lib
46
46
list (FIND PYEXT_LIBRARY "optimized" _index )
47
47
if (${_index} GREATER -1 )
48
48
MATH (EXPR _index "${_index} +1" )
49
49
list (GET PYEXT_LIBRARY ${_index} PYEXT_LIBRARY )
50
- set (force_optimized_lib_flag "--force_optimized_lib" )
50
+ message ("force linking to python release lib
51
+ instead of debug lib when cythonising" )
51
52
endif ()
53
+ set (force_optimized_lib_flag "--force_optimized_lib" )
52
54
endif ()
53
55
54
56
set (PYEXT_INCLUDE_DIRS "${PYTHON_INCLUDE_DIRS} ;${NUMPY_INCLUDE_DIR} " )
You can’t perform that action at this time.
0 commit comments