Changeset c3c1ac1 in OpenModelica


Ignore:
Timestamp:
2020-10-21T14:04:15+02:00 (3 years ago)
Author:
Mahder Gebremedhin <mahder.gebremedhin@…>
Children:
e9ec81a
Parents:
0476685a
git-author:
Mahder Gebremedhin <mahder.gebremedhin@…> (07/12/20 20:34:30)
git-committer:
Mahder Gebremedhin <mahder.gebremedhin@…> (10/21/20 14:04:15)
Message:

[cmake] Remove the temporary template target.

  • It was added just for testing whiled developing.
  • The generated mo files are now used by the libOpenModelica target. So the tpl files will be translated to mo if the mo files are missing.
Location:
OMCompiler/Compiler/Template
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/Compiler/Template/CMakeLists.txt

    rbca8c1e rc3c1ac1  
    66
    77# a temporary target in the meantime.
    8 add_custom_target(
    9     template_temp ALL
    10     DEPENDS ${TPL_OUTPUT_MO_FILES}
    11 )
     8# add_custom_target(
     9#     template_temp ALL
     10#     DEPENDS ${TPL_OUTPUT_MO_FILES}
     11# )
    1212
  • OMCompiler/Compiler/Template/template_targets.cmake

    rbca8c1e rc3c1ac1  
    1717    # message(STATUS "${template_file} : ${depends_on}")
    1818
    19     get_filename_component(file_name_no_ext ${template_file} NAME_WE)
     19    get_filename_component(file_name_no_ext ${template_file} NAME_WLE)
    2020    set(output_mo_file ${file_name_no_ext}.mo)
    2121    # omc generates the mo file in the current dir. So we might as well put the log
     
    3131
    3232        DEPENDS ${template_file} ${depends_on}
    33         COMMAND ${OMC_EXE} -d=failtrace
    34         ARGS ${template_file} > ${output_log_file}
    35                 || (cat ${output_log_file} && false)
     33        COMMAND ${OMC_EXE} -d=failtrace ${template_file} > ${output_log_file} || (cat ${output_log_file} && false)
    3634
    3735        OUTPUT ${output_mo_file}
     
    4846    set(TPL_OUTPUT_MO_FILES ${TPL_OUTPUT_MO_FILES} ${output_mo_file})
    4947
    50     message(STATUS "added Susan template target ${template_file} dependent on ${depends_on}")
     48    message(STATUS "Added Susan template target ${template_file} dependent on ${depends_on}")
    5149
    5250endmacro(omc_add_template_target)
Note: See TracChangeset for help on using the changeset viewer.