Set version, soname ahead of release.
[ginac.git] / CMakeLists.txt
index aa221ff7059148c8fafb227dcc0231799623e887..aab81f253e796ab943a17315321f5c4c3d5fb00a 100644 (file)
@@ -45,7 +45,14 @@ endif()
 
 set (CMAKE_CXX_STANDARD 11)
 
-find_package(CLN 1.2.2 REQUIRED)
+if (NOT DEFINED CLN_SOURCE_DIR)
+       set(CLN_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cln)
+endif()
+if (EXISTS ${CLN_SOURCE_DIR}/CMakeLists.txt)
+       add_subdirectory(${CLN_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}/cln)
+else()
+       find_package(CLN 1.2.2 REQUIRED)
+endif()
 
 include(CheckIncludeFile)
 check_include_file("unistd.h" HAVE_UNISTD_H)