Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into documentation/howto…
Browse files Browse the repository at this point in the history
…_build_the_maven_artifact_yourself
  • Loading branch information
ralfkonrad committed Oct 6, 2024
2 parents 357eba5 + ff6a792 commit 32e29be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ project(quantlib_for_maven VERSION 1.35.0 LANGUAGES CXX)

# set the Boost and Swig versions we want to use
# to ensure compatibility across linux, macos and windows builds
set(RKE_BOOST_VERSION "1.86.0" CACHE STRING "Boost version we want to use to ensure compatibility")
set(RKE_SWIG_VERSION "4.2.1" CACHE STRING "Swig version we want to use to ensure compatibility")
set(QL_MVN_BOOST_VERSION "1.86.0" CACHE STRING "Boost version we want to use to ensure compatibility")
set(QL_MVN_SWIG_VERSION "4.2.1" CACHE STRING "Swig version we want to use to ensure compatibility")

# set the QuantLib options the way we need them.
# So, they do not need to be provided in the presets or as a cmake -D cache entry.
Expand Down Expand Up @@ -63,7 +63,7 @@ if (${MSVC})
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
endif ()

find_package(Boost ${RKE_BOOST_VERSION} EXACT CONFIG REQUIRED)
find_package(Boost ${QL_MVN_BOOST_VERSION} EXACT CONFIG REQUIRED)

add_subdirectory(${QUANTLIB_ROOT})
add_subdirectory(${SWIG_ROOT})
2 changes: 1 addition & 1 deletion swig/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ find_package(Threads REQUIRED)

find_package(JNI REQUIRED)

find_package(SWIG ${RKE_SWIG_VERSION} EXACT REQUIRED COMPONENTS java)
find_package(SWIG ${QL_MVN_SWIG_VERSION} EXACT REQUIRED COMPONENTS java)
include(UseSWIG)

set_property(SOURCE ${QL_ENTRYPOINT_I_FILE} PROPERTY CPLUSPLUS ON)
Expand Down

0 comments on commit 32e29be

Please sign in to comment.