File tree 1 file changed +15
-2
lines changed
1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -30,13 +30,26 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Warray-bounds -Wtype-limits -Wreturn-ty
30
30
##################
31
31
32
32
## System dependencies are found with CMake's conventions
33
- find_package (PythonLibs $ENV{PYTHONDIST} REQUIRED)
33
+
34
+
35
+ message (STATUS $ENV{PYTHONDIST} )
36
+
37
+ if ("$ENV{PYTHONDIST} " MATCHES "2." )
38
+ set (PYTHONVERSION, "2.7" )
39
+ find_package (Boost REQUIRED COMPONENTS python)
40
+ elseif ("$ENV{PYTHONDIS} " MATCHES "3." )
41
+ set (PYTHONVERSION, "3.5" )
42
+ find_package (Boost REQUIRED COMPONENTS python-py35)
43
+ endif ("$ENV{PYTHONDIST} " MATCHES "2." )
44
+
45
+ find_package (PythonLibs ${PYTHONVERSION} REQUIRED)
34
46
35
47
if (NOT PYTHONLIBS_FOUND)
36
48
message (ERROR "PythonLibs not found!" )
37
49
endif ()
38
50
39
- find_package (Boost REQUIRED COMPONENTS python-py35)
51
+
52
+ message (STATUS ${Boost_LIBRARIES} )
40
53
41
54
##################
42
55
## Header files ##
You can’t perform that action at this time.
0 commit comments