浏览代码

Merge pull request #4913 from rael346/cmake-uninstall-conflict

Only create uninstall target when raylib is top level
pull/4914/head
Ray 2 个月前
committed by GitHub
父节点
当前提交
1d020d6db1
找不到此签名对应的密钥 GPG 密钥 ID: B5690EEEBB952194
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. +3
    -2
      CMakeLists.txt

+ 3
- 2
CMakeLists.txt 查看文件

@ -46,8 +46,9 @@ endif()
# Main sources directory (the second parameter sets the output directory name to raylib)
add_subdirectory(src raylib)
# Uninstall target
if(NOT TARGET uninstall)
# Uninstall target, only create when building raylib by itself
# Avoid conflicting target names when using raylib with other libraries
if(NOT TARGET uninstall AND PROJECT_IS_TOP_LEVEL)
configure_file(
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/Uninstall.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake"

正在加载...
取消
保存