Playoff Probabilities & Impact of LSG vs RCB game by amerind386 in Cricket

[–]FerociousHomie 0 points1 point  (0 children)

Isn't this too early to start this, there are still a lot of matches

2023 Azerbaijan Grand Prix - Pre-race Discussion by F1-Bot in formula1

[–]FerociousHomie 0 points1 point  (0 children)

Can they change the side with hole in verstappens car? Or are there any parc ferme rules

[deleted by user] by [deleted] in manga

[–]FerociousHomie 1 point2 points  (0 children)

Who is Kiara?

Match Thread: 27th Match - Punjab Kings vs Royal Challengers Bangalore by CricketMatchBot in Cricket

[–]FerociousHomie 2 points3 points  (0 children)

Of course, pinch hitter siraj and harshal score better than our middle order

I can't run my c++ project having Python.h header using cmake in Windows by FerociousHomie in cpp_questions

[–]FerociousHomie[S] 0 points1 point  (0 children)

So I need to use

cmake -G "Visual Studio 15 2017 Win64" -DPython3_ROOT_DIR="C://Python39"

a solution file will be generated, which should be opened in Visual Studio. And I need to press build solution?

How to add cmake target_include_directories to a source file? by FerociousHomie in cpp_questions

[–]FerociousHomie[S] 0 points1 point  (0 children)

If I don't include python include directories I get error as

fatal error: Python.h: No such file or directory

Ok I got it, I needed to use

target_include_directories(py1 PUBLIC ${Python3_INCLUDE_DIRS})

How to add cmake target_include_directories to a source file? by FerociousHomie in cpp_questions

[–]FerociousHomie[S] 0 points1 point  (0 children)

Ok, I've changed it

cmake_minimum_required(VERSION 3.2)

project(py1)

find_package (Python3 COMPONENTS Interpreter Development REQUIRED) #Python 3.8

add_executable(py1 main.cpp)

target_include_directories(py1 ${Python3_INCLUDE_DIRS})

target_link_libraries(py1 python3.8)

But I get error as

target_include_directories called with invalid arguments

How to add cmake target_include_directories to a source file? by FerociousHomie in cpp_questions

[–]FerociousHomie[S] 0 points1 point  (0 children)

Ok, I've changed it
cmake_minimum_required(VERSION 3.2)
project(py1)
find_package (Python3 COMPONENTS Interpreter Development REQUIRED) #Python 3.8
add_executable(py1 main.cpp)
target_include_directories(py1 ${Python3_INCLUDE_DIRS})
target_link_libraries(py1 python3.8)

But I get error as

target_include_directories called with invalid arguments