File tree 1 file changed +9
-7
lines changed
1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -99,13 +99,15 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/ct/core/templateDir.h.in ${CM
99
99
100
100
## define the directories to be included in all ct_core targets
101
101
list (APPEND ct_core_target_include_dirs ${EIGEN3_INCLUDE_DIR} )
102
- if (${Python_FOUND} )
103
- if (${CMAKE_VERSION} VERSION_LESS "3.12.0" )
104
- list (APPEND ct_core_target_include_dirs ${PYTHON_INCLUDE_DIRS} )
105
- else ()
106
- list (APPEND ct_core_target_include_dirs ${Python_INCLUDE_DIRS} )
107
- list (APPEND ct_core_target_include_dirs ${Python_NumPy_INCLUDE_DIRS} )
108
- endif ()
102
+ if (${CMAKE_VERSION} VERSION_LESS "3.12.0" )
103
+ if (PYTHONLIBS_FOUND)
104
+ list (APPEND ct_core_target_include_dirs ${PYTHON_INCLUDE_DIRS} )
105
+ endif ()
106
+ else ()
107
+ if (Python_FOUND AND ${Python_VERSION_MAJOR} EQUAL 3)
108
+ list (APPEND ct_core_target_include_dirs ${Python_INCLUDE_DIRS} )
109
+ list (APPEND ct_core_target_include_dirs ${Python_NumPy_INCLUDE_DIRS} )
110
+ endif ()
109
111
endif ()
110
112
list (APPEND ct_core_target_include_dirs ${QWT_INCLUDE_DIR} )
111
113
list (APPEND ct_core_target_include_dirs $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >)
You can’t perform that action at this time.
0 commit comments