vcpkg/ports/scenepic/fix-CMakeInstall.patch
Jennifer Chukwu b442de3a61
[Scenepic] Add new port (#28661)
* [scenepic] new port

* format

* update version database

* resolve comments

* Update version database

* update version database

* update version database

* fix install path

* x-add-version

* Update scenepic.json

* suggested changes

* update version

Co-authored-by: Lily Wang <494550702@qq.com>
Co-authored-by: Lily Wang <94091114+LilyWangLL@users.noreply.github.com>
2023-01-11 16:18:45 -08:00

38 lines
1.1 KiB
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a2a14bb..7a06c65 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -186,8 +186,8 @@ endif()
# -------------------- Install ------------------------------------
set(INSTALL_CONFIGDIR cmake)
-set(INSTALL_LIBDIR build/native/lib)
-set(INSTALL_INCLUDEDIR build/native/include)
+set(INSTALL_LIBDIR lib)
+set(INSTALL_INCLUDEDIR include)
install(TARGETS scenepic
EXPORT scenepic-targets
@@ -195,7 +195,7 @@ install(TARGETS scenepic
LIBRARY DESTINATION ${INSTALL_LIBDIR}
)
-if( WIN32 )
+if( 0 )
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
install(FILES
$<TARGET_FILE_DIR:scenepic>/scenepic.pdb
diff --git a/src/scenepic/CMakeLists.txt b/src/scenepic/CMakeLists.txt
index f3d9673..916ab28 100644
--- a/src/scenepic/CMakeLists.txt
+++ b/src/scenepic/CMakeLists.txt
@@ -47,7 +47,7 @@ target_compile_features(scenepic PRIVATE cxx_std_14)
target_include_directories( scenepic
PUBLIC
- $<INSTALL_INTERFACE:build/native/include>
+ $<INSTALL_INTERFACE:include>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include/scenepic>
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
PRIVATE