Skip to content

Commit f9c4e39

Browse files
committed
Merge branch 'devel' into release/4.15.0
2 parents 34f844f + d7a5420 commit f9c4e39

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,14 @@ project(${PROJECT_NAME} ${PROJECT_ARGS})
3232
list(APPEND PKG_CONFIG_ADDITIONAL_VARIABLES cmake_plugin)
3333

3434
# Dependencies
35-
findpython()
3635
add_project_dependency("hpp-core" REQUIRED)
3736
add_project_dependency("hpp-affordance" REQUIRED)
3837
add_project_dependency("hpp-corbaserver" REQUIRED)
3938
add_required_dependency("omniORB4 >= 4.1.4")
39+
# search for python
40+
if(NOT FINDPYTHON_ALREADY_CALLED)
41+
findpython()
42+
endif()
4043

4144
# Make sure that python submodule is installed in the same prefix as module.
4245
if(NOT ${HPP_CORBASERVER_PREFIX} STREQUAL ${CMAKE_INSTALL_PREFIX})

0 commit comments

Comments
 (0)