mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 19:39:00 +08:00
a8a07972db
* [pagmo2] Add new port * Disable C4701 * Disable /MD override for all static builds * Add pagmo2 port_version info * Find TBB when finding pagmo * Fixup pagmo2 port version * Change /Md patch to if(0) * Fix port_version for pagmo2 * Use vcpkg.json; use version * Reformat vcpkg.json * Fix port_versions for pagmo2
21 lines
651 B
Diff
21 lines
651 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 96653ba..549d9d4 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -141,6 +141,7 @@ endif()
|
|
# Boost setup.
|
|
include(PagmoFindBoost)
|
|
|
|
+if(0)
|
|
# Explanation: on MSVC, when building static libraries, it is good practice to link
|
|
# to the static runtime. CMake, however, is hard-coded to link to the dynamic runtime.
|
|
# Hence we hackishly replace the /MD flag with /MT. This is the approach suggested
|
|
@@ -161,6 +162,7 @@ if(YACMA_COMPILER_IS_MSVC AND PAGMO_BUILD_STATIC_LIBRARY)
|
|
endif()
|
|
endforeach()
|
|
endif()
|
|
+endif()
|
|
|
|
# List of source files.
|
|
set(PAGMO_SRC_FILES
|