mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
9dea7a60d6
* add: gmsh * add: versioning for gmsh. * [gmsh] Re-factory code * Fix install, remove some features due to lack required dependencies. * version * Do not support uwp officially * version * Update ports/gmsh/portfile.cmake * Update versions/g-/gmsh.json * Group the options * version * version Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com> Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
39 lines
1.0 KiB
Diff
39 lines
1.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 7040709..a4b8c61 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1872,12 +1872,30 @@ endif()
|
|
|
|
# mark targets as optional so we can install them separately if needed
|
|
# (e.g. "make lib" or "make shared" followed by "make install/fast")
|
|
-install(TARGETS gmsh DESTINATION ${GMSH_BIN} OPTIONAL)
|
|
+install(
|
|
+ TARGETS gmsh
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib
|
|
+ OPTIONAL
|
|
+)
|
|
if(ENABLE_BUILD_LIB)
|
|
- install(TARGETS lib DESTINATION ${GMSH_LIB} OPTIONAL)
|
|
+ install(
|
|
+ TARGETS lib
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib
|
|
+ OPTIONAL
|
|
+ )
|
|
endif()
|
|
if(ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
|
|
- install(TARGETS shared DESTINATION ${GMSH_LIB} OPTIONAL)
|
|
+ install(
|
|
+ TARGETS shared
|
|
+ RUNTIME DESTINATION bin
|
|
+ LIBRARY DESTINATION lib
|
|
+ ARCHIVE DESTINATION lib
|
|
+ OPTIONAL
|
|
+ )
|
|
endif()
|
|
|
|
if(ENABLE_ONELAB AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/contrib/onelab)
|