diff options
| author | Ahmad Fatoum <[email protected]> | 2020-08-08 00:34:31 +0200 |
|---|---|---|
| committer | Ahmad Fatoum <[email protected]> | 2020-08-08 01:11:45 +0200 |
| commit | 6108ba89df9acca1a35c24b30882a2d1568c7b71 (patch) | |
| tree | 0b40f6223f93eb606f2757b9f0b1f36d8fe235ad /src/CMakeLists.txt | |
| parent | 2c7dc708785da2afc3270d985f5eb2b369977d69 (diff) | |
| download | raylib-6108ba89df9acca1a35c24b30882a2d1568c7b71.tar.gz raylib-6108ba89df9acca1a35c24b30882a2d1568c7b71.zip | |
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.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 74170e61..a2289a26 100644 --- a/src/CMakeLists.txt +++ b/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( |
