fixed date

This commit is contained in:
Way, No 2014-04-27 15:13:34 +11:00
parent eb439132cf
commit ad5636742a
2 changed files with 6 additions and 4 deletions

View File

@ -144,8 +144,10 @@ if(OPENSPADES_RESDIR)
endif()
string(TIMESTAMP CMAKE_CURRENT_YEAR "%Y")
mark_as_advanced(CMAKE_CURRENT_YEAR)
if(UNIX)
EXECUTE_PROCESS(COMMAND "date" "+%Y" OUTPUT_VARIABLE CMAKE_CURRENT_YEAR)
mark_as_advanced(CMAKE_CURRENT_YEAR)
endif(UNIX)
if(CMAKE_CXX_COMPILER_ID)
if(CMAKE_CXX_COMPILER_VERSION)

View File

@ -61,14 +61,14 @@ if(UNIX AND NOT APPLE)
)
add_custom_target(OpenSpades_Packaging ALL COMMENT "Process unix stuff")
add_custom_target(OpenSpades_Unix ALL COMMENT "Process unix stuff")
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Unix)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Unix/Debian)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/Unix/Man)
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Unix/Debian/copyright.in" "${CMAKE_CURRENT_BINARY_DIR}/Unix/Debian/copyright")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Unix/Man/openspades.6.in" "${CMAKE_CURRENT_BINARY_DIR}/Unix/Debian/openspades.6")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/Unix/Man/openspades.6.in" "${CMAKE_CURRENT_BINARY_DIR}/Unix/Man/openspades.6")
add_custom_command(
TARGET OpenSpades_Unix