mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-22 05:27:20 +00:00
[all] pass the project path to the version.cmake script
This commit is contained in:
parent
e1d7752165
commit
a94d3734c2
@ -59,7 +59,7 @@ get_filename_component(PROJECT_TOP "${PROJECT_SOURCE_DIR}/.." ABSOLUTE)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
||||||
${CMAKE_BINARY_DIR}/_version.c
|
${CMAKE_BINARY_DIR}/_version.c
|
||||||
COMMAND ${CMAKE_COMMAND} -P
|
COMMAND ${CMAKE_COMMAND} -D PROJECT_TOP=${PROJECT_TOP} -P
|
||||||
${PROJECT_TOP}/version.cmake
|
${PROJECT_TOP}/version.cmake
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ get_filename_component(PROJECT_TOP "${PROJECT_SOURCE_DIR}/.." ABSOLUTE)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
||||||
${CMAKE_BINARY_DIR}/_version.c
|
${CMAKE_BINARY_DIR}/_version.c
|
||||||
COMMAND ${CMAKE_COMMAND} -P
|
COMMAND ${CMAKE_COMMAND} -D PROJECT_TOP=${PROJECT_TOP} -P
|
||||||
${PROJECT_TOP}/version.cmake
|
${PROJECT_TOP}/version.cmake
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -134,7 +134,7 @@ Section "-Install" Section1
|
|||||||
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Looking Glass (host)" \
|
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Looking Glass (host)" \
|
||||||
"NoModify" "1"
|
"NoModify" "1"
|
||||||
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Looking Glass (host)" \
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Looking Glass (host)" \
|
||||||
"DisplayVersion" ${VERSION}
|
"DisplayVersion" ${VERSION}
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ get_filename_component(PROJECT_TOP "${PROJECT_SOURCE_DIR}/.." ABSOLUTE)
|
|||||||
add_custom_command(
|
add_custom_command(
|
||||||
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
OUTPUT ${CMAKE_BINARY_DIR}/version.c
|
||||||
${CMAKE_BINARY_DIR}/_version.c
|
${CMAKE_BINARY_DIR}/_version.c
|
||||||
COMMAND ${CMAKE_COMMAND} -P
|
COMMAND ${CMAKE_COMMAND} -D PROJECT_TOP=${PROJECT_TOP} -P
|
||||||
${PROJECT_TOP}/version.cmake
|
${PROJECT_TOP}/version.cmake
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user