Skip to content

Commit

Permalink
set XercesC_DIR for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
gitting-around committed Oct 16, 2024
1 parent 1618abb commit af1842f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ if (NOT DEFINED THIRD_PARTY_LIBRARIES_ROOT)
set(THIRD_PARTY_LIBRARIES_ROOT ${THIRD_PARTY_LIBRARIES_ROOT}/darwin)
ELSE ()
set(THIRD_PARTY_LIBRARIES_ROOT ${THIRD_PARTY_LIBRARIES_ROOT}/linux)

set(XercesC_DIR "${CMAKE_CURRENT_SOURCE_DIR}/build/external/win-${arch}/cmake")
ENDIF ()
set(THIRD_PARTY_LIBRARIES_ROOT ${THIRD_PARTY_LIBRARIES_ROOT}-${arch})
ELSEIF (WIN32)
Expand Down Expand Up @@ -120,7 +122,7 @@ add_subdirectory(thirdparty/googletest)
#execute_process(COMMAND ${CMAKE_EXECUTABLE} thirdparty/rapidjson -DCMAKE_INSTALL_PREFIX="${CMAKE_CURRENT_SOURCE_DIR}/build/install/thirdparty/rapidjson" WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/build/thirdparty/rapidjson")
#execute_process(COMMAND ${CMAKE_EXECUTABLE} --build "${CMAKE_CURRENT_SOURCE_DIR}/build/thirdparty/rapidjson" --target install)

add_subdirectory(thirdparty/xerces-c)
#add_subdirectory(thirdparty/xerces-c)

#set(BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
#set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
Expand Down

0 comments on commit af1842f

Please sign in to comment.