mirror of
https://github.com/QIDITECH/QIDIStudio.git
synced 2026-01-30 16:38:41 +03:00
update version
This commit is contained in:
@@ -181,11 +181,15 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
# We pick it from environment if it is not defined in another way
|
||||
if(WIN32)
|
||||
if(EXISTS "${CMAKE_SOURCE_DIR}/scripts/hooks/pre-commit" AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
|
||||
message(STATUS ".git: directory")
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/scripts/hooks/pre-commit"
|
||||
"${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit"
|
||||
)
|
||||
if(IS_DIRECTORY "${CMAKE_SOURCE_DIR}/.git")
|
||||
message(STATUS ".git: directory")
|
||||
configure_file(
|
||||
"${CMAKE_SOURCE_DIR}/scripts/hooks/pre-commit"
|
||||
"${CMAKE_SOURCE_DIR}/.git/hooks/pre-commit"
|
||||
)
|
||||
else()
|
||||
message(STATUS "skip pre-commit git hook")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
find_package(PkgConfig REQUIRED)
|
||||
@@ -567,12 +571,12 @@ foreach(po_file ${QDT_L10N_PO_FILES})
|
||||
endforeach()
|
||||
|
||||
# copy pt-BR/QidiStudio.mo to pt_br/
|
||||
SET(PT_BR "${L10N_DIR}/pt-BR/QIDIStudio.mo")
|
||||
SET(PT_BR_DST "${L10N_DIR}/pt_br/")
|
||||
add_custom_command(
|
||||
TARGET gettext_po_to_mo POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different ${PT_BR} ${PT_BR_DST}
|
||||
)
|
||||
#SET(PT_BR "${L10N_DIR}/pt-BR/QIDIStudio.mo")
|
||||
#SET(PT_BR_DST "${L10N_DIR}/pt_br/")
|
||||
#add_custom_command(
|
||||
# TARGET gettext_po_to_mo POST_BUILD
|
||||
# COMMAND ${CMAKE_COMMAND} -E copy_if_different ${PT_BR} ${PT_BR_DST}
|
||||
#)
|
||||
|
||||
find_package(NLopt 1.4 REQUIRED)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user