Skip to content

Commit

Permalink
Update correct version in CppNew
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Jun 2, 2024
1 parent 5881396 commit ca849b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SDK/Examples/CppNew/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@ set(CMAKE_CXX_STANDARD 11)
# Determine the platform and set lib3mf_DIR accordingly
if(WIN32)
# Path for Windows
set(lib3mf_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../lib3mf-2.3.0-Windows/lib/cmake/lib3mf")
set(lib3mf_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../lib3mf-2.3.1-Windows/lib/cmake/lib3mf")
find_package(lib3mf REQUIRED COMPONENTS Cpp)
elseif(APPLE)
# Path for macOS (Darwin)
set(lib3mf_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../lib3mf-2.3.0-Darwin/lib/cmake/lib3mf")
set(lib3mf_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../lib3mf-2.3.1-Darwin/lib/cmake/lib3mf")
find_package(lib3mf REQUIRED COMPONENTS Cpp)
else()
# Path for Linux (Here we check twice to test for Debian / RPM packages properly)
find_package(lib3mf QUIET COMPONENTS Cpp)
# Check if the package was not found
if(NOT lib3mf_FOUND)
# lib3mf not found, so set lib3mf_DIR to the fallback directory
set(lib3mf_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../lib3mf-2.3.0-Linux/lib/cmake/lib3mf")
set(lib3mf_DIR "${CMAKE_CURRENT_SOURCE_DIR}/../../lib3mf-2.3.1-Linux/lib/cmake/lib3mf")
# Find package (lib3mf)
find_package(lib3mf REQUIRED COMPONENTS Cpp)
endif()
Expand Down

0 comments on commit ca849b8

Please sign in to comment.