mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 09:49:01 +08:00
cb537a2aee
* [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 726e3ce3d2
.
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
26 lines
782 B
Diff
26 lines
782 B
Diff
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}
|
|
)
|