]> git.rm.cloudns.org Git - xonotic/netradiant.git/commitdiff
cmake: reuse already defined variables
authorThomas Debesse <dev@illwieckz.net>
Sun, 28 Mar 2021 15:53:16 +0000 (17:53 +0200)
committerThomas Debesse <dev@illwieckz.net>
Sun, 28 Mar 2021 17:15:01 +0000 (19:15 +0200)
CMakeLists.txt

index 7d743f704b0b0592dfad6e23c5d932cddb748f3d..b2fa296e953cd9c6c2fcfec248b5a3afd8bd3ab1 100644 (file)
@@ -20,7 +20,7 @@ if (APPLE)
 endif ()
 
 set(BUILTIN_GTKGLEXT_BUILT OFF CACHE INTERNAL "...")
-if (EXISTS "${BUILTINS_INSTALL_DIR}/lib/pkgconfig/gtkglext-1.0.pc")
+if (EXISTS "${BUILTINS_PKGCONFIG_DIR}gtkglext-1.0.pc")
     set(BUILTIN_GTKGLEXT_BUILT ON)
 endif ()
 
@@ -406,8 +406,8 @@ if (BUILTIN_GTKGLEXT)
         INSTALL_COMMAND $(MAKE) install
     )
 
-    include_directories("${BUILTINS_INSTALL_DIR}/lib/gtkglext-1.0/include")
-    include_directories("${BUILTINS_INSTALL_DIR}/include/gtkglext-1.0")
+    include_directories("${BUILTINS_INCLUDE_DIR}/gtkglext-1.0")
+    include_directories("${BUILTINS_LIB_DIR}/gtkglext-1.0/include")
 
     add_dependencies(builtins gtkglext)
     set_target_properties(gtkglext PROPERTIES EXCLUDE_FROM_ALL ON)