Ver código fonte

cmake preamble as per review.

Signed-off-by: sphrose <[email protected]>
sphrose 2 anos atrás
pai
commit
7d777172b1
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7 0
      Gems/AzQtComponentsForPython/CMakeLists.txt

+ 7 - 0
Gems/AzQtComponentsForPython/CMakeLists.txt

@@ -6,6 +6,13 @@
 #
 #
 
+# Query the gem name from the gem.json file if possible
+# otherwise fallback to using ${Name}
+o3de_find_ancestor_gem_root(gempath gem_name "${CMAKE_CURRENT_SOURCE_DIR}")
+if (NOT gem_name)
+    set(gem_name "AzQtComponentsForPython")
+endif()
+
 set(gem_path ${CMAKE_CURRENT_LIST_DIR})
 set(gem_json ${gem_path}/gem.json)
 o3de_restricted_path(${gem_json} gem_restricted_path gem_parent_relative_path)