Browse Source

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`).
Semphriss 3 years ago
parent
commit
79711c69e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sq/CMakeLists.txt

+ 1 - 1
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)