Skip to content

Commit

Permalink
Attempt conan install.
Browse files Browse the repository at this point in the history
  • Loading branch information
John-LittleBearLabs committed Dec 12, 2024
1 parent 0361448 commit df8b3ce
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion cmake/python.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,16 @@ execute_process(
if(CONAN_STATUS EQUAL 0)
message(STATUS "Have conan.")
else()
message(WARNING "conan not working!! This will almost certainly cause problems down the line.")
execute_process(
COMMAND "${Python_EXECUTABLE}" -m pip install --user --upgrade conan
)
execute_process(
COMMAND "conan" --version
RESULT_VARIABLE CONAN_STATUS
)
if(CONAN_STATUS EQUAL 0)
message(STATUS "Installed conan.")
else()
message(WARNING "conan not working!! This will almost certainly cause problems down the line.")
endif()
endif()

0 comments on commit df8b3ce

Please sign in to comment.