Changeset 577c0c0b in OpenModelica


Ignore:
Timestamp:
2020-10-21T14:04:17+02:00 (3 years ago)
Author:
Mahder Gebremedhin <mahder.gebremedhin@…>
Children:
cc36b37
Parents:
16b92f9d
git-author:
Mahder Gebremedhin <mahder.gebremedhin@…> (09/25/20 12:05:19)
git-committer:
Mahder Gebremedhin <mahder.gebremedhin@…> (10/21/20 14:04:17)
Message:

[cmake] Add a separate installation component.

  • So we now have separate install component "compiler". This allows to install just omc and its runtime dependencies. You can, for example, specify this component as follows:

cmake -DCOMPONENT=compiler -P cmake_install.cmake

in your root build directory.

  • CMake will install everything built by default. If you build just omc and then try to make install it will start building everything first.
Location:
OMCompiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/3rdParty

    • Property commit changed from 7307c74012dbcac64d3591deb508c66988da9d67 to 01879451f71725762be739b711d27afaa5e07aae
  • OMCompiler/Compiler/CMakeLists.txt

    r16b92f9d r577c0c0b  
    181181# Install OpenModelicaCompiler to the directory for LIBRARIES (default=lib)
    182182# Install omc to the directory for RUNTIME (default=bin)
    183 install(TARGETS omc OpenModelicaCompiler)
     183# They are part of "compiler" installation component. This means that you can
     184# install just the files in this component by specifying its name.
     185install(TARGETS omc OpenModelicaCompiler
     186            COMPONENT compiler)
    184187
    185188# Install the *ModelicaBuiltin files to <library_dir>/omc/ that is where omc.exe expects them to be.
    186 install(FILES NFFrontEnd/NFModelicaBuiltin.mo DESTINATION ${CMAKE_INSTALL_LIBDIR}/omc)
    187 install(FILES FrontEnd/ModelicaBuiltin.mo DESTINATION ${CMAKE_INSTALL_LIBDIR}/omc)
    188 install(FILES FrontEnd/MetaModelicaBuiltin.mo DESTINATION ${CMAKE_INSTALL_LIBDIR}/omc)
     189# They are also part of "compiler" installation component.
     190install(FILES NFFrontEnd/NFModelicaBuiltin.mo
     191            DESTINATION ${CMAKE_INSTALL_LIBDIR}/omc
     192            COMPONENT compiler)
     193install(FILES FrontEnd/ModelicaBuiltin.mo
     194            DESTINATION ${CMAKE_INSTALL_LIBDIR}/omc
     195            COMPONENT compiler)
     196install(FILES FrontEnd/MetaModelicaBuiltin.mo
     197            DESTINATION ${CMAKE_INSTALL_LIBDIR}/omc
     198            COMPONENT compiler)
Note: See TracChangeset for help on using the changeset viewer.