Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit2434a7a

Browse files
davidebeatricilikle
authored andcommitted
CMake: Rely on GNUInstallDirs for installation directories
https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
1 parent20226de commit2434a7a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

‎CMakeLists.txt‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ include(EnableWarnings)
1313
include(CTest)
1414
include(CreateTestList)
1515
include(CMakePackageConfigHelpers)
16+
include(GNUInstallDirs)
1617

1718
# configure requirements
1819
set(CMAKE_C_STANDARD 11)
@@ -269,20 +270,16 @@ write_basic_package_version_file("CwalkConfigVersion.cmake"
269270
configure_file(cwalk.pc.in${PROJECT_BINARY_DIR}/cwalk.pc @ONLY)
270271

271272
install(TARGETS cwalk
272-
EXPORT CwalkTargets
273-
RUNTIMEDESTINATION bin
274-
LIBRARYDESTINATION lib
275-
ARCHIVEDESTINATION lib
276-
PUBLIC_HEADERDESTINATIONinclude)
273+
EXPORT CwalkTargets)
277274

278275
install(FILES
279276
"${CMAKE_CURRENT_SOURCE_DIR}/cmake/CwalkConfig.cmake"
280-
DESTINATIONlib/cmake/cwalk)
277+
DESTINATION${CMAKE_INSTALL_LIBDIR}/cmake/cwalk)
281278

282279
install(FILES
283280
${PROJECT_BINARY_DIR}/cwalk.pc
284281
DESTINATION lib/pkgconfig/)
285282

286283
install(EXPORT CwalkTargets
287284
FILE CwalkTargets.cmake
288-
DESTINATIONlib/cmake/cwalk)
285+
DESTINATION${CMAKE_INSTALL_LIBDIR}/cmake/cwalk)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp