瀏覽代碼

CMake: don't use raylib_static name for MinGW on Windows

There are no *.lib files that could overwrite each other when building
both static and shared versions of raylib at once. So just use the
normal library name without _static suffix.
pull/1346/head
Ahmad Fatoum 4 年之前
父節點
當前提交
6108ba89df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/CMakeLists.txt

+ 1
- 1
src/CMakeLists.txt 查看文件

@ -176,7 +176,7 @@ if(STATIC)
set_property(TARGET raylib_static PROPERTY POSITION_INDEPENDENT_CODE ON)
endif()
set_target_properties(raylib_static PROPERTIES PUBLIC_HEADER "raylib.h")
if(NOT WIN32) # Keep lib*.(a|dll) name, but avoid *.lib files overwriting each other on Windows
if(NOT MSVC) # Keep lib*.(a|dll) name, but avoid *.lib files overwriting each other on Windows
set_target_properties(raylib_static PROPERTIES OUTPUT_NAME raylib)
endif()
install(

||||||
x
 
000:0
Loading…
取消
儲存