mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Add message for single_sol target generation or not.
This commit is contained in:
parent
0234385f7b
commit
412df84d58
@ -182,4 +182,7 @@ if (PYTHONINTERP_FOUND)
|
|||||||
add_custom_command(OUTPUT sol.hpp COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/single.py --output ${CMAKE_CURRENT_BINARY_DIR}/sol.hpp DEPENDS ${HEADER_SRCS})
|
add_custom_command(OUTPUT sol.hpp COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/single.py --output ${CMAKE_CURRENT_BINARY_DIR}/sol.hpp DEPENDS ${HEADER_SRCS})
|
||||||
add_custom_target(single_sol DEPENDS sol.hpp)
|
add_custom_target(single_sol DEPENDS sol.hpp)
|
||||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sol.hpp" DESTINATION include)
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sol.hpp" DESTINATION include)
|
||||||
|
message(STATUS "single_sol can be generated as python 3 has been found.")
|
||||||
|
else()
|
||||||
|
message(STATUS "single_sol cannot be generated as python 3 has not been found.")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user