瀏覽代碼

BundleUtilities: simplify inclusion of GetPrerequisites

Rolf Eike Beer 6 年之前
父節點
當前提交
d5333c0923
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      Modules/BundleUtilities.cmake

+ 1 - 2
Modules/BundleUtilities.cmake

@@ -246,8 +246,7 @@ endif()
 # The functions defined in this file depend on the get_prerequisites function
 # The functions defined in this file depend on the get_prerequisites function
 # (and possibly others) found in:
 # (and possibly others) found in:
 #
 #
-get_filename_component(BundleUtilities_cmake_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
-include("${BundleUtilities_cmake_dir}/GetPrerequisites.cmake")
+include("${CMAKE_CURRENT_LIST_DIR}/GetPrerequisites.cmake")
 
 
 
 
 function(get_bundle_main_executable bundle result_var)
 function(get_bundle_main_executable bundle result_var)