소스 검색

CMake: accept standard -DBUILD_SHARED_LIBS as well

-DBUILD_SHARED_LIBS=OFF == -DSHARED=OFF -DSTATIC=ON
-DBUILD_SHARED_LIBS=ON  == -DSHARED=ON  -DSTATIC=OFF

Fixes #626.
pull/656/head
Ahmad Fatoum 6 년 전
부모
커밋
2981713e4f
No known key found for this signature in database GPG 키 ID: C3EAC3DE9321D59B
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. +8
    -0
      src/CMakeOptions.txt

+ 8
- 0
src/CMakeOptions.txt 파일 보기

@ -84,6 +84,14 @@ if(NOT (STATIC OR SHARED))
message(FATAL_ERROR "Nothing to do if both -DSHARED=OFF and -DSTATIC=OFF...")
endif()
if (DEFINED BUILD_SHARED_LIBS)
set(SHARED ${BUILD_SHARED_LIBS})
if (${BUILD_SHARED_LIBS})
set(STATIC OFF)
else()
set(STATIC ON)
endif()
endif()
if(DEFINED SHARED_RAYLIB)
set(SHARED ${SHARED_RAYLIB})
message(DEPRECATION "-DSHARED_RAYLIB is deprecated. Please use -DSHARED instead.")

불러오는 중...
취소
저장