Changeset 13796


Ignore:
Timestamp:
Oct 22, 2019 10:05:25 AM (3 weeks ago)
Author:
aramle
Message:

#5819 Adding variable to be able to define Python base dir in more locations.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dev-5819/Python/src/pyjmi/examples/files/Resources/CMakeLists.txt

    r10167 r13796  
    2424
    2525#Make the directory for header files to be installed in.
    26 if( " ${JM_PLATFORM} " MATCHES " win64 ")
     26if(PYTHON_BASE_DIR)
     27install(CODE "file(MAKE_DIRECTORY $ENV{DESTDIR}${JMODELICA_INSTALL_DIR}/${PYTHON_BASE_DIR}/pyjmi/examples/files/Resources/Include/)")
     28elseif( " ${JM_PLATFORM} " MATCHES " win64 ")
    2729install(CODE "file(MAKE_DIRECTORY $ENV{DESTDIR}${JMODELICA_INSTALL_DIR}/Python_64/pyjmi/examples/files/Resources/Include/)")
    2830else ()
     
    3133
    3234#Make the directory for lib files to be installed in.
    33 if( " ${JM_PLATFORM} " MATCHES " win64 ")
     35if(PYTHON_BASE_DIR)
     36set(TEST_LIBRARY_INSTALL_DIR ${JMODELICA_INSTALL_DIR}/${PYTHON_BASE_DIR}/pyjmi/examples/files/Resources/Library/${JM_PLATFORM})
     37elseif( " ${JM_PLATFORM} " MATCHES " win64 ")
    3438set(TEST_LIBRARY_INSTALL_DIR ${JMODELICA_INSTALL_DIR}/Python_64/pyjmi/examples/files/Resources/Library/${JM_PLATFORM})
    3539else ()
Note: See TracChangeset for help on using the changeset viewer.