Fix for newer cmake minimum version and some translation targets.
This commit is contained in:
parent
ba296898d7
commit
388e4c00d9
1 changed files with 8 additions and 8 deletions
|
@ -217,10 +217,10 @@ if(ENABLE_POT_UPDATE_TARGET)
|
|||
)
|
||||
|
||||
endforeach(DOMAIN ${DOMAINS})
|
||||
add_custom_target(po-update-${LINGUA}
|
||||
COMMENT "po-update ${LINGUA}: Done."
|
||||
DEPENDS ${po-update-LINGUA-SRC}
|
||||
)
|
||||
# newer cmake minimum versions forbid the "@" symbol in certain targets
|
||||
# this causes problems for translation targets such as "sr@latin"
|
||||
string(REPLACE "@" "_" target_name ${LINGUA})
|
||||
add_custom_target(po-update-${target_name} COMMENT "po-update ${LINGUA} as ${target_name}: Done." DEPENDS ${po-update-LINGUA-SRC})
|
||||
set(po-update-LINGUA-SRC "")
|
||||
endforeach(LINGUA ${LINGUAS})
|
||||
|
||||
|
@ -274,10 +274,10 @@ if(ENABLE_NLS)
|
|||
endforeach(DOMAIN ${DOMAINS})
|
||||
|
||||
if(ENABLE_POT_UPDATE_TARGET)
|
||||
add_custom_target(mo-update-${LINGUA}
|
||||
COMMENT "mo-update ${LINGUA}: Done."
|
||||
DEPENDS ${mo-update-LINGUA-SRC}
|
||||
)
|
||||
# newer cmake minimum versions forbid the "@" symbol in certain targets
|
||||
# this causes problems for translation targets such as "sr@latin"
|
||||
string(REPLACE "@" "_" target_name ${LINGUA})
|
||||
add_custom_target(mo-update-${target_name} COMMENT "mo-update ${LINGUA} as ${target_name}: Done." DEPENDS ${mo-update-LINGUA-SRC})
|
||||
set(mo-update-LINGUA-SRC "")
|
||||
endif(ENABLE_POT_UPDATE_TARGET)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue