Skip to content

Commit 2e9ddcc

Browse files
authored
Merge pull request #172 from p01arst0rm/cmake-bugfixes
small cmake fixes
2 parents 9eb5e63 + 84163f7 commit 2e9ddcc

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed

src/config/contrib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if(NOT WIN32)
99
install(
1010
FILES
1111
"${CMAKE_CURRENT_BINARY_DIR}/liblucene++-contrib.pc"
12-
DESTINATION "${LIB_DESTINATION}/pkgconfig")
12+
DESTINATION {${CMAKE_INSTALL_LIBDIR}/pkgconfig)
1313
endif()
1414

1515

@@ -31,4 +31,4 @@ install(
3131
FILES
3232
"${CMAKE_CURRENT_BINARY_DIR}/liblucene++-contribConfig.cmake"
3333
"${CMAKE_CURRENT_BINARY_DIR}/liblucene++-contribConfigVersion.cmake"
34-
DESTINATION "${LIB_DESTINATION}/cmake/liblucene++-contrib")
34+
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/liblucene++-contrib")

src/config/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ install(
3131
FILES
3232
"${CMAKE_CURRENT_BINARY_DIR}/liblucene++Config.cmake"
3333
"${CMAKE_CURRENT_BINARY_DIR}/liblucene++ConfigVersion.cmake"
34-
DESTINATION "${LIB_DESTINATION}/cmake/liblucene++")
34+
DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/liblucene++)

src/contrib/CMakeLists.txt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@ file(GLOB_RECURSE contrib_sources
2727
"snowball/libstemmer_c/runtime/*.c"
2828
)
2929

30-
file(GLOB_RECURSE contrib_headers
31-
"${lucene++-lib_SOURCE_DIR}/include/*.h"
32-
)
30+
file(GLOB_RECURSE contrib_headers
31+
"${lucene++-lib_SOURCE_DIR}/include/*.h")
3332

3433

3534

@@ -64,8 +63,7 @@ target_link_libraries(lucene++-contrib
6463
Boost::system
6564
Boost::thread
6665
ZLIB::ZLIB
67-
lucene++::lucene++
68-
)
66+
lucene++::lucene++)
6967

7068
if(WIN32)
7169
target_link_libraries(lucene++-contrib ws2_32)
@@ -88,10 +86,10 @@ set_target_properties(lucene++-contrib
8886
cotire(lucene++-contrib)
8987

9088
install(TARGETS lucene++-contrib
91-
DESTINATION "${LIB_DESTINATION}"
89+
DESTINATION ${CMAKE_INSTALL_LIBDIR}
9290
COMPONENT runtime)
9391

9492
install(
9593
FILES ${contrib_headers}
96-
DESTINATION "include/lucene++"
94+
LIBRARY DESTINATION "include/lucene++"
9795
COMPONENT development-contrib)

src/core/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,5 @@ cotire(lucene++)
8383

8484

8585
install(TARGETS lucene++
86-
DESTINATION "${LIB_DESTINATION}"
86+
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
8787
COMPONENT runtime)

src/test/CMakeLists.txt

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
11
project(tester)
22

33

4-
####################################
5-
# create test bin target
6-
####################################
7-
add_executable(lucene++-tester)
8-
9-
104
####################################
115
# configure GTest
126
####################################
@@ -32,11 +26,13 @@ file(GLOB_RECURSE tester_sources
3226
"util/*.cpp")
3327

3428
file(GLOB_RECURSE test_headers
35-
"${lucene++-tester_SOURCE_DIR}/include/*.h")
29+
"${lucene++-tester_SOURCE_DIR}/include/*.h")
3630

37-
target_sources(lucene++-tester
38-
PRIVATE
39-
${tester_sources})
31+
####################################
32+
# create test bin target
33+
####################################
34+
add_executable(lucene++-tester
35+
${tester_sources})
4036

4137

4238
####################################

0 commit comments

Comments
 (0)