From 79711c69e2c4193b4b6f98c9162856d61ddaeb9f Mon Sep 17 00:00:00 2001 From: Semphriss <66701383+Semphriss@users.noreply.github.com> Date: Wed, 9 Mar 2022 02:26:30 +0000 Subject: [PATCH] Fix interpreter CMake alias for static builds The interpreter for static builds is called `sq_static`, but its alias is referring to `sq`, which is only generated from dynamic builds and breaks CMake builds that disable dynamic builds (`-DDISABLE_DYNAMIC=ON`). --- sq/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sq/CMakeLists.txt b/sq/CMakeLists.txt index bdea07d..f7629a3 100644 --- a/sq/CMakeLists.txt +++ b/sq/CMakeLists.txt @@ -15,7 +15,7 @@ endif() if(NOT DISABLE_STATIC) add_executable(sq_static sq.c) - add_executable(squirrel::interpreter_static ALIAS sq) + add_executable(squirrel::interpreter_static ALIAS sq_static) set_target_properties(sq_static PROPERTIES LINKER_LANGUAGE C EXPORT_NAME interpreter_static) target_link_libraries(sq_static squirrel_static sqstdlib_static) if(NOT SQ_DISABLE_INSTALLER)