Skip to content

Commit

Permalink
[CMake] Also set LIBRARY_OUTPUT_DIRECTORY target property.
Browse files Browse the repository at this point in the history
This is fix to the previous change of using the RUNTIME_OUTPUT_DIRECTORY target property in CMakeLists.txt
MSVC does not have to rely on LIBRARY_OUTPUT_DIRECTORY for shared libraries, i.e. add_library() target, but Linux does.
This fixes the missing libLLGL_*.so libraries in the output directory on Linux.
  • Loading branch information
LukasBanana committed Feb 15, 2025
1 parent 1e8d916 commit 9636793
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ function(set_llgl_module_properties MODULE_NAME)
DEBUG_POSTFIX "D"
FOLDER "LLGL"
RUNTIME_OUTPUT_DIRECTORY "${LLGL_OUTPUT_DIR}"
LIBRARY_OUTPUT_DIRECTORY "${LLGL_OUTPUT_DIR}"
)
endfunction()

Expand Down

0 comments on commit 9636793

Please sign in to comment.