aboutsummaryrefslogtreecommitdiff
path: root/ports/licensepp/fix-cmake.patch
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2020-06-11 16:00:07 +0800
committerGitHub <noreply@github.com>2020-06-11 01:00:07 -0700
commitcb537a2aeef96e96663d4b2fa3a6f18dcd1b5457 (patch)
tree1140aa6313490c4dd3d6c5b60b5e6ac100a86c84 /ports/licensepp/fix-cmake.patch
parent1901067fc673c25b76a67cc2d18d0d827e9e59b0 (diff)
downloadvcpkg-cb537a2aeef96e96663d4b2fa3a6f18dcd1b5457.tar.gz
vcpkg-cb537a2aeef96e96663d4b2fa3a6f18dcd1b5457.zip
[licensepp] Add new port (#11711)
* [licensepp] Add new port * [cryptopp-pem] Update to a newer version that will make lincensepp happy * Revert "[cryptopp-pem] Update to a newer version that will make lincensepp happy" This reverts commit 726e3ce3d20bc6266bc7bf63cb35572fe297869f. This version can not compile with cryptopp. * [licensepp] Finish it * [licensepp] Fix interface include directory * [licensepp] Fixup cmake targets * [licensepp] -O3 is not recognised by msvc * [licensepp] Fix _iterator_debug_level value mismatch * [licensepp] Update patch file * [licensepp] Fail fast on UWP * [licensepp] Simplify patch file * [licensepp] Tabs -> Spaces
Diffstat (limited to 'ports/licensepp/fix-cmake.patch')
-rw-r--r--ports/licensepp/fix-cmake.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/ports/licensepp/fix-cmake.patch b/ports/licensepp/fix-cmake.patch
new file mode 100644
index 000000000..f421b6d92
--- /dev/null
+++ b/ports/licensepp/fix-cmake.patch
@@ -0,0 +1,25 @@
+diff --git "a/CMakeLists.txt" "b/CMakeLists.txt"
+index b2c39d1..24a6866 100644
+--- "a/CMakeLists.txt"
++++ "b/CMakeLists.txt"
+@@ -35,10 +35,8 @@ if (APPLE)
+ endif()
+ endif()
+
+-if(MSVC)
+- list (APPEND CMAKE_CXX_FLAGS " -std=c++11 -O3 ")
+-else()
+- list (APPEND CMAKE_CXX_FLAGS " -std=c++11 -O3 -Wall -Werror ")
++if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
++ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -Wall -Werror")
+ endif()
+
+ # Check for cryptopp (static)
+@@ -73,6 +71,7 @@ endif()
+ set_target_properties (licensepp-lib PROPERTIES
+ VERSION ${LICENSEPP_SOVERSION}
+ )
++target_include_directories (licensepp-lib PUBLIC $<INSTALL_INTERFACE:include>)
+ target_link_libraries (licensepp-lib
+ ${CRYPTOPP_LIBRARIES}
+ )