Skip to content

Commit

Permalink
Update CMakeLists.txt for windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
borodust committed Jan 22, 2018
1 parent ec1245e commit 8bb1a22
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,25 @@ matrix:
- ARCH=i686
- CFLAGS=-m32
- EXTENSION=so
- OUTPUT_FILE=lib$NAME.$EXTENSION.bodged
- os: linux
env:
- ARCH=x86_64
- CFLAGS=-m64
- EXTENSION=so
- OUTPUT_FILE=lib$NAME.$EXTENSION.bodged
- os: osx
env:
- ARCH=i686
- CFLAGS=-m32
- EXTENSION=dylib
- OUTPUT_FILE=lib$NAME.bodged.$EXTENSION
- os: osx
env:
- ARCH=x86_64
- CFLAGS=-m64
- EXTENSION=dylib
- OUTPUT_FILE=lib$NAME.bodged.$EXTENSION

branches:
only:
Expand All @@ -56,7 +60,7 @@ script:
before_deploy:
- export TARGET_FILE=$TRAVIS_BUILD_DIR/lib$NAME.$EXTENSION.bodged-$ARCH-$TRAVIS_OS_NAME-$TRAVIS_BRANCH
- mv $TRAVIS_BUILD_DIR/lib/lib$NAME.$EXTENSION.bodged $TARGET_FILE
- mv $TRAVIS_BUILD_DIR/lib/$OUTPUT_FILE $TARGET_FILE

deploy:
provider: releases
Expand Down
6 changes: 6 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ set_target_properties(glfw PROPERTIES
VERSION bodged
SOVERSION bodged
POSITION_INDEPENDENT_CODE ON)

if (WIN32)
set_target_properties(glfw PROPERTIES
PREFIX lib
SUFFIX .dll.bodged)
endif()

0 comments on commit 8bb1a22

Please sign in to comment.