aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK.Kosako <kkosako0@gmail.com>2021-08-31 22:24:18 +0900
committerK.Kosako <kkosako0@gmail.com>2021-08-31 22:24:18 +0900
commitd04c21b0d87ff07ea7018d4332c8a39b40078f68 (patch)
treec822ab8c82033493b3325546b482b37ce6b83d64
parent71bf9bdc49b39090416067feae38ea105c7e196e (diff)
downloadoniguruma-7.0.zip
oniguruma-7.0.tar.gz
oniguruma-7.0.tar.bz2
fix configure_file() position after include(GNUInstallDirs)7.0
-rw-r--r--CMakeLists.txt9
1 files changed, 5 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 79a8cf8..b5d21a8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -45,10 +45,6 @@ endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/config.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/oniguruma.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/oniguruma.pc @ONLY)
-
-configure_file(${CMAKE_CURRENT_SOURCE_DIR}/onig-config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/onig-config @ONLY)
-
set(_SRCS src/regint.h src/regparse.h src/regenc.h src/st.h
src/regerror.c src/regparse.c src/regcomp.c src/regexec.c
src/reggnu.c src/regenc.c src/regsyntax.c src/regtrav.c src/regversion.c
@@ -225,6 +221,11 @@ install(FILES sample/bug_fix.c sample/callback_each_match.c
endif()
# pkg-config
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/oniguruma.pc.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/oniguruma.pc @ONLY)
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/onig-config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/onig-config @ONLY)
+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/oniguruma.pc
DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)