Skip to content

Commit

Permalink
xercesc dir to -arch/cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
gitting-around committed Oct 16, 2024
1 parent f4cfb34 commit 1759d63
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ if (NOT DEFINED THIRD_PARTY_LIBRARIES_ROOT)
if (UNIX)
if (APPLE)
set(THIRD_PARTY_LIBRARIES_ROOT ${THIRD_PARTY_LIBRARIES_ROOT}/darwin)
set(XercesC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/build/external/darwin-${arch}/cmake/XercesC")
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/external/darwin-${arch}/lib/libxerces-c-3.2.a")
set(XercesC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/build/external/darwin-${arch}/cmake")
#set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/external/darwin-${arch}/lib/libxerces-c-3.2.a")
ELSE ()
set(THIRD_PARTY_LIBRARIES_ROOT ${THIRD_PARTY_LIBRARIES_ROOT}/linux)
set(XercesC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/build/external/linux-${arch}/cmake/XercesC")
set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/external/linux-${arch}/lib/libxerces-c-3.2.a")
set(XercesC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/build/external/linux-${arch}/cmake")
#set(CMAKE_PREFIX_PATH "${CMAKE_CURRENT_SOURCE_DIR}/build/external/linux-${arch}/lib/libxerces-c-3.2.a")
ENDIF ()
set(THIRD_PARTY_LIBRARIES_ROOT ${THIRD_PARTY_LIBRARIES_ROOT}-${arch})
message("Thirdparty libraries root:")
Expand Down
4 changes: 1 addition & 3 deletions rabbitmq-fmu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,7 @@ include_directories(${gtest_SOURCE_DIR}/include)
message("Path for XercesC_DIR is:")
message(${XercesC_DIR})
message("Path for CMAKE_PREFIX_PATH is:")
message(${CMAKE_PREFIX_PATH})
find_package(XercesC REQUIRED)
#find_package(XercesC CONFIG PATHS ${THIRD_PARTY_LIBRARIES_ROOT} REQUIRED) # XSD DEPENDS ON ${XERCESC_FOUND}
find_package(XercesC CONFIG PATHS ${THIRD_PARTY_LIBRARIES_ROOT} REQUIRED) # XSD DEPENDS ON ${XERCESC_FOUND}
if (XercesC_FOUND)
message(STATUS "Package Xerces-C++ found: ${XercesC_INCLUDE_DIR}")
else (XercesC_FOUND)
Expand Down

0 comments on commit 1759d63

Please sign in to comment.