Skip to content

Commit af386c1

Browse files
slipherillwieckz
authored andcommitted
Fix error at cmake configuration time
I get errors on the 'install' lines saying that it is required to specify the destinations with CMake 3.13. This is not required in newer versions apparently?
1 parent 3ef7ed1 commit af386c1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crnlib/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ add_library(${CRUNCH_LIBRARY_NAME} ${CRUNCH_DEFAULT_LIBRARY_TYPE} $<TARGET_OBJEC
211211
set_property(TARGET ${CRUNCH_LIBRARY_NAME} PROPERTY POSITION_INDEPENDENT_CODE 1)
212212

213213
if (BUILD_SHARED_LIBS OR BUILD_STATIC_LIBCRN)
214-
install(TARGETS ${CRUNCH_LIBRARY_NAME})
214+
install(TARGETS ${CRUNCH_LIBRARY_NAME} DESTINATION lib)
215215
endif()
216216

217217
if ((BUILD_SHARED_LIBS AND BUILD_STATIC_LIBCRN) OR (NOT BUILD_SHARED_LIBS AND BUILD_SHARED_LIBCRN))
@@ -224,5 +224,5 @@ if ((BUILD_SHARED_LIBS AND BUILD_STATIC_LIBCRN) OR (NOT BUILD_SHARED_LIBS AND BU
224224
set_target_properties(${CRUNCH_OTHER_LIBRARY_NAME} PROPERTIES OUTPUT_NAME ${CRUNCH_LIBRARY_NAME})
225225
endif()
226226

227-
install(TARGETS ${CRUNCH_OTHER_LIBRARY_NAME})
227+
install(TARGETS ${CRUNCH_OTHER_LIBRARY_NAME} DESTINATION lib)
228228
endif()

crunch/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ add_executable(${CRUNCH_EXE_NAME} ${CRUNCH_SRCS})
1818

1919
target_link_libraries(${CRUNCH_EXE_NAME} ${CRUNCH_LIBRARY_NAME} ${CMAKE_THREAD_LIBS_INIT})
2020

21-
install(TARGETS ${CRUNCH_EXE_NAME})
21+
install(TARGETS ${CRUNCH_EXE_NAME} DESTINATION bin)
2222
set_property(TARGET ${CRUNCH_EXE_NAME} PROPERTY POSITION_INDEPENDENT_CODE 1)

0 commit comments

Comments
 (0)