aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2018-06-08 17:18:18 -0700
committerGitHub <noreply@github.com>2018-06-08 17:18:18 -0700
commit895b73265b0c3ae20c5ccdba15706f90c2b5302f (patch)
tree0e1aebc300ff23b56a050e27e2b52f6a71a43fb3
parent39c70573df301fb5e4297abbc7f05cc05c0af0a4 (diff)
parent2a9fd468eb07a909e352d84d280bb8a821e93d75 (diff)
downloadvcpkg-895b73265b0c3ae20c5ccdba15706f90c2b5302f.tar.gz
vcpkg-895b73265b0c3ae20c5ccdba15706f90c2b5302f.zip
Merge pull request #3689 from eXpl0it3r/patch-2
Added proper window-static support
-rw-r--r--ports/sfml/portfile.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports/sfml/portfile.cmake b/ports/sfml/portfile.cmake
index f07a199e6..2773ec215 100644
--- a/ports/sfml/portfile.cmake
+++ b/ports/sfml/portfile.cmake
@@ -30,9 +30,9 @@ vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/SFML)
vcpkg_copy_pdbs()
-# don't force users to define SFML_STATIC while using static library
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
- file(APPEND ${CURRENT_PACKAGES_DIR}/include/SFML/Config.hpp "#undef SFML_API_IMPORT\n#define SFML_API_IMPORT\n")
+ FILE(READ ${CURRENT_PACKAGES_DIR}/share/sfml/SFMLConfig.cmake SFML_CONFIG)
+ FILE(WRITE ${CURRENT_PACKAGES_DIR}/share/sfml/SFMLConfig.cmake "set(SFML_STATIC_LIBRARIES true)\n${SFML_CONFIG}")
endif()
# move sfml-main to manual link dir