Skip to content

Commit ec9175c

Browse files
committed
Improve CMakeLists.
1 parent 666c35e commit ec9175c

File tree

4 files changed

+14
-24
lines changed

4 files changed

+14
-24
lines changed

CMakeLists.txt

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,17 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.20)
2424
PROJECT(Steppable)
2525

2626
# Ensure that Python is available to run the development scripts, and build with bindings.
27-
FIND_PACKAGE(
28-
Python
29-
COMPONENTS Interpreter Development
30-
REQUIRED
31-
)
32-
FIND_PACKAGE(
33-
Python3
34-
COMPONENTS Interpreter Development
35-
REQUIRED
36-
)
27+
set(Python_FIND_VIRTUALENV FIRST)
28+
29+
find_package(
30+
Python
31+
COMPONENTS Development Interpreter
32+
REQUIRED)
33+
34+
find_package(
35+
Python3
36+
COMPONENTS Development Interpreter
37+
REQUIRED)
3738

3839
SET(CMAKE_CXX_STANDARD 20)
3940
SET(CMAKE_CXX_EXTENSIONS OFF)

Steppable.sublime-project

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
{
55
"path": ".",
66
},
7+
{
8+
"path": "~/Desktop/Steppable.wiki"
9+
},
710
],
811
"debugger_configurations":
912
[

lib/CMakeLists.txt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,6 @@
2020
# SOFTWARE. #
2121
#####################################################################################################
2222

23-
set(Python_FIND_VIRTUALENV ONLY)
24-
25-
if (NOT DEFINED Python_EXECUTABLE)
26-
find_package(
27-
Python
28-
COMPONENTS Development Interpreter
29-
REQUIRED)
30-
find_package(
31-
Python3
32-
COMPONENTS Development Interpreter
33-
REQUIRED)
34-
endif ()
3523
set(Python_EXECUTABLE ${Python3_EXECUTABLE})
3624

3725
# Detect the installed nanobind package and import it into CMake

src/factorial/factorial.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@
3434
#include "output.hpp"
3535
#include "util.hpp"
3636

37-
#include <algorithm>
3837
#include <iostream>
3938
#include <string_view>
40-
#include <vector>
4139

4240
using namespace steppable::__internals::numUtils;
4341
using namespace steppable::__internals::utils;

0 commit comments

Comments
 (0)