mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:49:01 +08:00
bf482a9b58
* [ampl-asl] Separate port ampl-mp module asl to ampl-asl * [ampl-mp] Update version, separate port ampl-asl and fix arm build * update baseline * [VMSS] Pre-install ampl-mp:x86-windows * Update ports/ampl-asl/portfile.cmake
24 lines
1018 B
Diff
24 lines
1018 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index d4c6762..c7b15b6 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -197,7 +197,7 @@ function (add_mp_library name)
|
|
target_compile_definitions(${name}
|
|
PUBLIC ${add_mp_library_COMPILE_DEFINITIONS})
|
|
target_include_directories(${name}
|
|
- PUBLIC ${add_mp_library_INCLUDE_DIRECTORIES})
|
|
+ PUBLIC $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/${add_mp_library_INCLUDE_DIRECTORIES}> $<INSTALL_INTERFACE:include>)
|
|
if (add_mp_library_DEPENDS)
|
|
add_dependencies(${name} ${add_mp_library_DEPENDS})
|
|
endif ()
|
|
@@ -363,6 +363,7 @@ if(BUILD_TESTING)
|
|
endif()
|
|
|
|
install(DIRECTORY include/mp DESTINATION include)
|
|
-install(TARGETS mp DESTINATION lib RUNTIME DESTINATION bin)
|
|
+install(TARGETS mp EXPORT unofficial-mp-config DESTINATION lib RUNTIME DESTINATION bin)
|
|
install(FILES LICENSE.rst DESTINATION share/mp)
|
|
+install(EXPORT unofficial-mp-config DESTINATION share/unofficial-mp)
|
|
install(TARGETS gen-expr-info RUNTIME DESTINATION bin)
|
|
\ No newline at end of file
|