mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 16:59:08 +08:00
286fa50cbd
* [ginkgo] create new port * [ginkgo] add description for feature requirements * Update baseline version * [ginkgo] Minimize patches Co-authored-by: PhoebeHui <20694052+PhoebeHui@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
87 lines
3.3 KiB
Diff
87 lines
3.3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index e75f7d6..63685f2 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -20,6 +20,12 @@ include(cmake/hip_path.cmake)
|
|
include(cmake/autodetect_executors.cmake)
|
|
include(cmake/build_type_helpers.cmake)
|
|
|
|
+if (MSVC)
|
|
+ add_compile_options(/bigobj)
|
|
+elseif (MINGW OR CYGWIN)
|
|
+ add_compile_options("-Wa,-mbig-obj")
|
|
+endif()
|
|
+
|
|
# Ginkgo configuration options
|
|
option(GINKGO_DEVEL_TOOLS "Add development tools to the build system" OFF)
|
|
option(GINKGO_BUILD_TESTS "Generate build files for unit tests" ON)
|
|
diff --git a/cmake/GinkgoConfig.cmake.in b/cmake/GinkgoConfig.cmake.in
|
|
index 0348f95..3b8be0f 100644
|
|
--- a/cmake/GinkgoConfig.cmake.in
|
|
+++ b/cmake/GinkgoConfig.cmake.in
|
|
@@ -129,8 +129,6 @@ set(GINKGO_OPENMP_LIBRARIES @OpenMP_CXX_LIBRARIES@)
|
|
set(GINKGO_OPENMP_FLAGS "@OpenMP_CXX_FLAGS@")
|
|
|
|
# Provide useful HIP helper functions
|
|
-include(${CMAKE_CURRENT_LIST_DIR}/hip_helpers.cmake)
|
|
-include(${CMAKE_CURRENT_LIST_DIR}/windows_helpers.cmake)
|
|
|
|
# NOTE: we do not export benchmarks, examples, tests or devel tools
|
|
# so `third_party` libraries are currently unneeded.
|
|
diff --git a/cmake/install_helpers.cmake b/cmake/install_helpers.cmake
|
|
index ba7ea3f..7cc3ba8 100644
|
|
--- a/cmake/install_helpers.cmake
|
|
+++ b/cmake/install_helpers.cmake
|
|
@@ -14,16 +14,11 @@ function(ginkgo_install_library name subdir)
|
|
# dll is considered as runtime
|
|
install(TARGETS "${name}"
|
|
EXPORT Ginkgo
|
|
- LIBRARY DESTINATION ${GINKGO_INSTALL_LIBRARY_DIR}
|
|
- ARCHIVE DESTINATION ${GINKGO_INSTALL_LIBRARY_DIR}
|
|
- RUNTIME DESTINATION ${GINKGO_INSTALL_LIBRARY_DIR}
|
|
)
|
|
else ()
|
|
# install .so and .a files
|
|
install(TARGETS "${name}"
|
|
EXPORT Ginkgo
|
|
- LIBRARY DESTINATION ${GINKGO_INSTALL_LIBRARY_DIR}
|
|
- ARCHIVE DESTINATION ${GINKGO_INSTALL_LIBRARY_DIR}
|
|
)
|
|
endif ()
|
|
endfunction()
|
|
@@ -37,9 +32,8 @@ function(ginkgo_install)
|
|
DESTINATION "${GINKGO_INSTALL_INCLUDE_DIR}"
|
|
FILES_MATCHING PATTERN "*.hpp"
|
|
)
|
|
- install(DIRECTORY "${Ginkgo_BINARY_DIR}/include/"
|
|
- DESTINATION "${GINKGO_INSTALL_INCLUDE_DIR}"
|
|
- FILES_MATCHING PATTERN "*.hpp"
|
|
+ install(FILES "${Ginkgo_BINARY_DIR}/include/ginkgo/config.hpp"
|
|
+ DESTINATION "${GINKGO_INSTALL_INCLUDE_DIR}/ginkgo"
|
|
)
|
|
if (GINKGO_HAVE_PAPI_SDE)
|
|
install(FILES "${Ginkgo_SOURCE_DIR}/third_party/papi_sde/papi_sde_interface.h"
|
|
@@ -70,8 +64,6 @@ function(ginkgo_install)
|
|
install(FILES
|
|
"${Ginkgo_BINARY_DIR}/GinkgoConfig.cmake"
|
|
"${Ginkgo_BINARY_DIR}/GinkgoConfigVersion.cmake"
|
|
- "${Ginkgo_SOURCE_DIR}/cmake/hip_helpers.cmake"
|
|
- "${Ginkgo_SOURCE_DIR}/cmake/windows_helpers.cmake"
|
|
DESTINATION "${GINKGO_INSTALL_CONFIG_DIR}"
|
|
)
|
|
install(EXPORT Ginkgo
|
|
diff --git a/cmake/windows_helpers.cmake b/cmake/windows_helpers.cmake
|
|
index 5f517a5..46d31ba 100644
|
|
--- a/cmake/windows_helpers.cmake
|
|
+++ b/cmake/windows_helpers.cmake
|
|
@@ -14,9 +14,7 @@ function(ginkgo_switch_windows_link lang from to)
|
|
endfunction()
|
|
|
|
macro(ginkgo_switch_to_windows_static lang)
|
|
- ginkgo_switch_windows_link(${lang} "MD" "MT")
|
|
endmacro()
|
|
|
|
macro(ginkgo_switch_to_windows_dynamic lang)
|
|
- ginkgo_switch_windows_link(${lang} "MT" "MD")
|
|
endmacro()
|