Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the libs-for-testing target. (#9816)
- This target was removed temporarily while we were adjusting how libraries are cached for installers. - The target installs libraries needed for running the OpenModelica testsuite.
- Loading branch information
Showing
3 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,32 @@ | ||
|
||
|
||
set(STAMP 20200610130629.stamp) | ||
set(STAMP 20221102135323.stamp) | ||
|
||
# Note that omc needs to be built and INSTALLED before you can add the libs for testing. | ||
# The reason being omc needs to be ina folder **/bin to work. Otherwise it will refuse to run | ||
# The reason being omc needs to be in a folder **/bin to work. Otherwise it will refuse to run | ||
# Plus it needs to know where find the shared libs it needs. That is structured to work for install. | ||
set(LIBS_DIR_FOR_TESTING ${CMAKE_CURRENT_SOURCE_DIR}/.openmodelica/libraries) | ||
add_custom_target(libs-for-testing | ||
COMMAND ${CMAKE_COMMAND} -E remove_directory .openmodelica/libraries | ||
COMMAND ${CMAKE_COMMAND} -E make_directory .openmodelica/libraries | ||
COMMAND ${CMAKE_COMMAND} -E remove_directory ${LIBS_DIR_FOR_TESTING} | ||
COMMAND ${CMAKE_COMMAND} -E make_directory ${LIBS_DIR_FOR_TESTING} | ||
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/index.json ${LIBS_DIR_FOR_TESTING} | ||
COMMAND ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/omc index.mos | ||
|
||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
|
||
|
||
## Disabled until we figure out how to properly handle this for packaging. | ||
|
||
# # Note that omc needs to be built and INSTALLED before you can add the libs for testing. | ||
# # The reason being omc needs to be in a folder **/bin to work. Otherwise it will refuse to run | ||
# # Plus it needs to know where find the shared libs it needs. That is structured to work for install. | ||
# set(LIBS_DIR_FOR_INSTALLER ${CMAKE_CURRENT_SOURCE_DIR}/.openmodelica/libraries) | ||
# add_custom_target(libs-for-installer | ||
# COMMAND ${CMAKE_COMMAND} -E remove_directory ${LIBS_DIR_FOR_INSTALLER} | ||
# COMMAND ${CMAKE_COMMAND} -E make_directory ${LIBS_DIR_FOR_INSTALLER} | ||
# COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_SOURCE_DIR}/install-index.json ${LIBS_DIR_FOR_INSTALLER} | ||
# COMMAND ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/omc ../index.mos | ||
|
||
# WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/installing | ||
# ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters