mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 06:59:01 +08:00
726c111481
vcpkg will now fail on failure to apply patches except when using `--head`.
54 lines
2.0 KiB
Diff
54 lines
2.0 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 27b8bd8..33fe623 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -2,7 +2,7 @@ if (${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
|
message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the source code and call cmake from there")
|
|
endif ()
|
|
|
|
-project(sfml-imgui)
|
|
+project(milerius-sfml-imgui)
|
|
cmake_minimum_required(VERSION 3.9)
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
@@ -26,7 +26,7 @@ include(CMakePackageConfigHelpers)
|
|
|
|
install(TARGETS
|
|
${PROJECT_NAME}
|
|
- EXPORT sfml-imgui-targets
|
|
+ EXPORT milerius-sfml-imgui-targets
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
|
|
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
|
|
@@ -39,7 +39,7 @@ install(EXPORT ${PROJECT_NAME}-targets
|
|
)
|
|
|
|
configure_package_config_file(
|
|
- "${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}-config.cmake.in"
|
|
+ "${PROJECT_SOURCE_DIR}/cmake/sfml-imgui-config.cmake.in"
|
|
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}-config.cmake"
|
|
INSTALL_DESTINATION lib/cmake/${PROJECT_NAME}
|
|
)
|
|
@@ -51,6 +51,6 @@ install(FILES
|
|
install(DIRECTORY
|
|
${CMAKE_CURRENT_SOURCE_DIR}/sfml-imgui
|
|
DESTINATION
|
|
- ${CMAKE_INSTALL_INCLUDEDIR}/sfml-imgui
|
|
+ ${CMAKE_INSTALL_INCLUDEDIR}/
|
|
FILES_MATCHING PATTERN "*.h*"
|
|
)
|
|
diff --git a/cmake/sfml-imgui-config.cmake.in b/cmake/sfml-imgui-config.cmake.in
|
|
index cd790be..e1bdd77 100644
|
|
--- a/cmake/sfml-imgui-config.cmake.in
|
|
+++ b/cmake/sfml-imgui-config.cmake.in
|
|
@@ -2,5 +2,5 @@
|
|
find_package(SFML CONFIG REQUIRED graphics)
|
|
find_package(imgui CONFIG REQUIRED)
|
|
find_package(OpenGL REQUIRED)
|
|
-include("${CMAKE_CURRENT_LIST_DIR}/sfml-imgui-targets.cmake")
|
|
-check_required_components("sfml-imgui")
|
|
\ No newline at end of file
|
|
+include("${CMAKE_CURRENT_LIST_DIR}/milerius-sfml-imgui-targets.cmake")
|
|
+check_required_components("milerius-sfml-imgui")
|
|
\ No newline at end of file
|