]> SALOME platform Git repositories - modules/paravis.git/commitdiff
Salome HOME
Variable ${PYTHON_VERSION} is not set by 'FindSalomePYTHON.cmake', so we use ${PYTHON...
authorakl <akl@opencascade.com>
Tue, 4 Jun 2013 14:55:35 +0000 (14:55 +0000)
committerakl <akl@opencascade.com>
Tue, 4 Jun 2013 14:55:35 +0000 (14:55 +0000)
idl/CMakeLists.txt

index 811e71305f3698b991640aa977d54f5b9515016a..ff89e8a27e317c23d1c91d09a6b75afebaafdf32 100644 (file)
@@ -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)")