Skip to content

Commit

Permalink
cmake: prefer python2.7 when compiling with MSVC 9
Browse files Browse the repository at this point in the history
  • Loading branch information
wojdyr committed Feb 10, 2017
1 parent 241de0d commit ddeb4b1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ set_target_properties (fityk cfityk PROPERTIES
COMPILE_DEFINITIONS VERSION="1.3.1")


if(MSVC90) # compiling with VS2008? It's most likely for Python 2.7.
set(Python_ADDITIONAL_VERSIONS 2.7)
endif()
find_package(PythonLibs)
if (PYTHONLIBS_FOUND)
message(STATUS "Building extension for Python ${PYTHONLIBS_VERSION_STRING}")
Expand Down

0 comments on commit ddeb4b1

Please sign in to comment.