mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
CMake: Fix Interrogate macro not working on CMake 3.0.2
This commit is contained in:
parent
d3ef7bf12d
commit
24ba0d0e72
@ -231,7 +231,9 @@ function(interrogate_sources target output database language_flags)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT "${output}" "${database}"
|
OUTPUT "${output}" "${database}"
|
||||||
COMMAND ${CMAKE_COMMAND} -E
|
COMMAND ${CMAKE_COMMAND} -E
|
||||||
make_directory "${output_directory}" "${database_directory}"
|
make_directory "${output_directory}"
|
||||||
|
COMMAND ${CMAKE_COMMAND} -E
|
||||||
|
make_directory "${database_directory}"
|
||||||
COMMAND host_interrogate
|
COMMAND host_interrogate
|
||||||
-oc "${output}"
|
-oc "${output}"
|
||||||
-od "${database}"
|
-od "${database}"
|
||||||
@ -342,7 +344,8 @@ function(add_python_module module)
|
|||||||
COMMENT "Generating module ${module}")
|
COMMENT "Generating module ${module}")
|
||||||
|
|
||||||
add_python_target(${module} COMPONENT "${component}" EXPORT "${component}"
|
add_python_target(${module} COMPONENT "${component}" EXPORT "${component}"
|
||||||
"${CMAKE_CFG_INTDIR}/${module}_module.cxx" ${sources_abs} ${extensions})
|
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/${module}_module.cxx"
|
||||||
|
${sources_abs} ${extensions})
|
||||||
target_link_libraries(${module} ${link_targets})
|
target_link_libraries(${module} ${link_targets})
|
||||||
|
|
||||||
if(CMAKE_VERSION VERSION_LESS "3.11")
|
if(CMAKE_VERSION VERSION_LESS "3.11")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user