瀏覽代碼

Do not read LOCATION property any more

This addresses an issue mentioned in #55
master
Timo Röhling 8 年之前
父節點
當前提交
9f971b2e66
共有 1 個檔案被更改,包括 2 行新增3 行删除
  1. 2
    3
      CMakeLists.txt

+ 2
- 3
CMakeLists.txt 查看文件

@@ -81,9 +81,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
81 81
     target_link_libraries(${PROJECT_NAME} ${LIBSOCKET} ${LIBNSL})
82 82
 endif()
83 83
 
84
-get_target_property(POSTSRSD ${PROJECT_NAME} LOCATION)
85
-get_filename_component(POSTSRSD ${POSTSRSD} NAME_WE)
86
-set(APPARMOR_PROFILE "${CMAKE_INSTALL_PREFIX}/sbin/${POSTSRSD}")
84
+set(POSTSRSD "$<TARGET_FILE_NAME:${PROJECT_NAME}>")
85
+set(APPARMOR_PROFILE "${CMAKE_INSTALL_PREFIX}/sbin/${PROJECT_NAME}")
87 86
 string(REGEX REPLACE "^/+" "" APPARMOR_PROFILE "${APPARMOR_PROFILE}")
88 87
 string(REPLACE "/" "." APPARMOR_PROFILE "${APPARMOR_PROFILE}")
89 88
 

Loading…
取消
儲存