${CMAKE_COMMAND} -E chdir <SOURCE_DIR> autoreconf -iv
COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --enable-shared
--enable-static --with-pic
- BUILD_BYPRODUCTS <INSTALL_DIR>/lib/libcln.a
- <INSTALL_DIR>/lib/libcln${CMAKE_SHARED_LIBRARY_SUFFIX}
+ BUILD_BYPRODUCTS <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libcln.a
+ <INSTALL_DIR>/${CMAKE_INSTALL_LIBDIR}/libcln${CMAKE_SHARED_LIBRARY_SUFFIX}
)
add_dependencies(CLN-EP GMP)
set(CLN_INCLUDE_DIR "${DEPS_BASE}/include/")
if(BUILD_SHARED_LIBS)
- set(CLN_LIBRARIES "${DEPS_BASE}/lib/libcln${CMAKE_SHARED_LIBRARY_SUFFIX}")
+ set(CLN_LIBRARIES "${DEPS_BASE}/${CMAKE_INSTALL_LIBDIR}/libcln${CMAKE_SHARED_LIBRARY_SUFFIX}")
else()
- set(CLN_LIBRARIES "${DEPS_BASE}/lib/libcln.a")
+ set(CLN_LIBRARIES "${DEPS_BASE}/${CMAKE_INSTALL_LIBDIR}/libcln.a")
endif()
endif()