Browse Source

Fix file path of default file in postinstall

tags/1.2
bjoe2k4 10 years ago
parent
commit
32d2cd0abd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      postinstall.cmake.in

+ 1
- 1
postinstall.cmake.in View File

15
 endif()
15
 endif()
16
 
16
 
17
 if(INIT_FLAVOR AND NOT EXISTS "$ENV{DESTDIR}${CONFIG_DIR}/@PROJECT_NAME@")
17
 if(INIT_FLAVOR AND NOT EXISTS "$ENV{DESTDIR}${CONFIG_DIR}/@PROJECT_NAME@")
18
-	file(INSTALL FILES "@CMAKE_CURRENT_SOURCE_DIR@/@PROJECT_NAME@.default" DESTINATION "${CONFIG_DIR}" RENAME "@PROJECT_NAME@")
18
+	file(INSTALL FILES "@CMAKE_CURRENT_BINARY_DIR@/@PROJECT_NAME@.default" DESTINATION "${CONFIG_DIR}" RENAME "@PROJECT_NAME@")
19
 endif()
19
 endif()
20
 
20
 
21
 if(INIT_FLAVOR STREQUAL "sysv-lsb")
21
 if(INIT_FLAVOR STREQUAL "sysv-lsb")

Loading…
Cancel
Save