fixed date
This commit is contained in:
parent
eb439132cf
commit
ad5636742a
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user