diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-01-14 11:02:40 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-01-25 10:44:43 +0000 |
commit | 24c03b51fd12ef7b9bc08f68d581c845d2800e14 (patch) | |
tree | 1c57833ed7fc5ef05f5e180597be040cdb65d668 /cmake | |
parent | 7910dadbca869512b869c927be3c56b9127a2847 (diff) |
cmake build: Remove unused internal variables
Change-Id: I68ed91462c3b3c9f27c2a0a5749c373704ce467a
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtCreatorAPI.cmake | 31 | ||||
-rw-r--r-- | cmake/QtCreatorAPIInternal.cmake | 3 |
2 files changed, 0 insertions, 34 deletions
diff --git a/cmake/QtCreatorAPI.cmake b/cmake/QtCreatorAPI.cmake index 5e88b57512..f03fd42978 100644 --- a/cmake/QtCreatorAPI.cmake +++ b/cmake/QtCreatorAPI.cmake @@ -245,24 +245,6 @@ function(add_qtc_library name) qtc_enable_separate_debug_info(${name} "${IDE_LIBRARY_PATH}") - if (library_type STREQUAL "SHARED") - set(target_prefix ${CMAKE_SHARED_LIBRARY_PREFIX}) - if (WIN32) - set(target_suffix ${PROJECT_VERSION_MAJOR}${CMAKE_SHARED_LIBRARY_SUFFIX}) - set(target_prefix "") - elseif(APPLE) - set(target_suffix .${PROJECT_VERSION_MAJOR}${CMAKE_SHARED_LIBRARY_SUFFIX}) - else() - set(target_suffix ${CMAKE_SHARED_LIBRARY_SUFFIX}.${PROJECT_VERSION_MAJOR}) - endif() - set(lib_dir "${IDE_LIBRARY_PATH}") - if (WIN32) - set(lib_dir "${_DESTINATION}") - endif() - update_cached_list(__QTC_INSTALLED_LIBRARIES - "${lib_dir}/${target_prefix}${name}${target_suffix}") - endif() - if (NAMELINK_OPTION) install(TARGETS ${name} LIBRARY @@ -519,16 +501,6 @@ function(add_qtc_plugin target_name) FILE ${CMAKE_BINARY_DIR}/cmake/${export}Targets.cmake ) endif() - get_target_property(target_suffix ${target_name} SUFFIX) - get_target_property(target_prefix ${target_name} PREFIX) - if (target_suffix STREQUAL "target_suffix-NOTFOUND") - set(target_suffix ${CMAKE_SHARED_LIBRARY_SUFFIX}) - endif() - if (target_prefix STREQUAL "target_prefix-NOTFOUND") - set(target_prefix ${CMAKE_SHARED_LIBRARY_PREFIX}) - endif() - update_cached_list(__QTC_INSTALLED_PLUGINS - "${plugin_dir}/${target_prefix}${target_name}${target_suffix}") endif() endfunction() @@ -729,9 +701,6 @@ function(add_qtc_executable name) endif() qtc_enable_separate_debug_info(${name} "${_DESTINATION}") - - update_cached_list(__QTC_INSTALLED_EXECUTABLES - "${_DESTINATION}/${name}${CMAKE_EXECUTABLE_SUFFIX}") endif() endfunction() diff --git a/cmake/QtCreatorAPIInternal.cmake b/cmake/QtCreatorAPIInternal.cmake index 79583f7925..cba693946b 100644 --- a/cmake/QtCreatorAPIInternal.cmake +++ b/cmake/QtCreatorAPIInternal.cmake @@ -88,11 +88,8 @@ else() endif () set(__QTC_PLUGINS "" CACHE INTERNAL "*** Internal ***") -set(__QTC_INSTALLED_PLUGINS "" CACHE INTERNAL "*** Internal ***") set(__QTC_LIBRARIES "" CACHE INTERNAL "*** Internal ***") -set(__QTC_INSTALLED_LIBRARIES "" CACHE INTERNAL "*** Internal ***") set(__QTC_EXECUTABLES "" CACHE INTERNAL "*** Internal ***") -set(__QTC_INSTALLED_EXECUTABLES "" CACHE INTERNAL "*** Internal ***") set(__QTC_TESTS "" CACHE INTERNAL "*** Internal ***") function(append_extra_translations target_name) |