From: akl Date: Tue, 4 Jun 2013 14:55:35 +0000 (+0000) Subject: Variable ${PYTHON_VERSION} is not set by 'FindSalomePYTHON.cmake', so we use ${PYTHON... X-Git-Tag: V7_3_0a1~49 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=20ee1e8d2df40597d4475032957109b9997e8f34;p=modules%2Fparavis.git Variable ${PYTHON_VERSION} is not set by 'FindSalomePYTHON.cmake', so we use ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} instead of. --- diff --git a/idl/CMakeLists.txt b/idl/CMakeLists.txt index 811e7130..ff89e8a2 100644 --- a/idl/CMakeLists.txt +++ b/idl/CMakeLists.txt @@ -131,7 +131,7 @@ FOREACH(input ${BASEIDL_FILES} ${WRAP_IDL}) SET(IDL_HEADER ${CMAKE_CURRENT_BINARY_DIR}/${base}.hh) INSTALL(FILES ${IDL_HEADER} DESTINATION include/salome) INSTALL(CODE "SET(IDL_FILE ${input})") - INSTALL(CODE "SET(DIR lib/python${PYTHON_VERSION}/site-packages/salome)") + INSTALL(CODE "SET(DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages/salome)") INSTALL(CODE "SET(CMAKE_CURRENT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})") INSTALL(CODE "SET(OMNIORB_IDL_PYTHON ${OMNIORB_IDL_PYTHON})") INSTALL(CODE "SET(IDLPYFLAGS -bpythonIDL -p${CMAKE_CURRENT_SOURCE_DIR} -I${CMAKE_CURRENT_SOURCE_DIR} -I${KERNEL_ROOT_DIR}/idl/salome)")