Skip to content

Commit

Permalink
Tweak CI
Browse files Browse the repository at this point in the history
  • Loading branch information
palemieux committed Oct 12, 2023
1 parent a2067b6 commit 894835d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
- name: Test Java
run: mvn test
- name: Configure CMake
run: cmake -DCXX_STANDARD=98 -B ${{github.workspace}}/build
run: cmake -DCI=1 -B ${{github.workspace}}/build
- name: Test regxmllibc
run: ctest
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ file(GLOB_RECURSE SRC_FILES src/main/cpp/*.cpp src/main/cpp/*.h )
add_library(${PROJECT_NAME} ${SRC_FILES})
install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION lib ARCHIVE DESTINATION lib)

if ( CI )
# enforce C++98 conformance during CI
set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 98)
endif()

target_link_libraries ( ${PROJECT_NAME} ${XercesC_LIBRARY} )

foreach(source IN LISTS SRC_FILES)
Expand Down

0 comments on commit 894835d

Please sign in to comment.