Skip to content

Commit

Permalink
fix find python 3.9 and 3.8, default BUILD_PYTHON=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
赵勇 committed May 20, 2022
1 parent 141813b commit d0fad93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ include(cmake/PICMake.cmake)

set(CMAKE_CXX_STANDARD 11)

option(BUILD_PYTHON "build svarpy module to support call python from c++" ON)
option(BUILD_PYTHON "build svarpy module to support call python from c++" OFF)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
Expand Down
2 changes: 1 addition & 1 deletion cmake/FindPython.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#=============================================================================
set(Python_ADDITIONAL_VERSIONS 3.7 3.6 3.5 3.4)
set(Python_ADDITIONAL_VERSIONS 3.9 3.8 3.7 3.6 3.5 3.4)

# Checking for the extension makes sure that `LibsNew` was found and not just `Libs`.
if(PYTHONLIBS_FOUND AND PYTHON_MODULE_EXTENSION)
Expand Down

0 comments on commit d0fad93

Please sign in to comment.