Skip to content

Commit 5a9f1e5

Browse files
committed
not redefining variable
1 parent cf898c2 commit 5a9f1e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_hooks/conan-center/test_apple_relocatable.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ def package_info(self):
5656
@staticmethod
5757
def cmakelists(install_name_dir="@rpath"):
5858
if install_name_dir == "@rpath":
59-
install_name_dir = ""
59+
cmake_install_name_dir = ""
6060
else:
61-
install_name_dir = f"set(CMAKE_INSTALL_NAME_DIR \"{install_name_dir}\")"
61+
cmake_install_name_dir = f"set(CMAKE_INSTALL_NAME_DIR \"{install_name_dir}\")"
6262

6363
return textwrap.dedent(f"""\
6464
cmake_minimum_required(VERSION 3.15)
6565
project(foo LANGUAGES CXX)
6666
6767
include(GNUInstallDirs)
6868
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS)
69-
{install_name_dir}
69+
{cmake_install_name_dir}
7070
7171
add_library(foo foo.cpp)
7272
install(

0 commit comments

Comments
 (0)