Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[XERCESC-2248] cmake: use enumerations for possible values, so that cmake-gui offers a drop-down selection #57

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/XercesMsgLoaderSelection.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ endif()
string(REPLACE ";" "|" msgloader_help "${msgloaders}")
list(GET msgloaders 0 xerces_msgloader_default)
set(message-loader "${xerces_msgloader_default}" CACHE STRING "Message loader (${msgloader_help})")
set_property(CACHE message-loader PROPERTY STRINGS ${msgloaders})
set(msgloader "${message-loader}")

list(FIND msgloaders "${msgloader}" msgloader_found)
Expand Down
1 change: 1 addition & 0 deletions cmake/XercesMutexMgrSelection.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ list(APPEND mutexmgrs nothreads)
string(REPLACE ";" "|" mutexmgr_help "${mutexmgrs}")
list(GET mutexmgrs 0 xerces_mutexmgr_default)
set(mutex-manager "${xerces_mutexmgr_default}" CACHE STRING "Mutex manager (${mutexmgr_help})")
set_property(CACHE mutex-manager PROPERTY STRINGS ${mutexmgrs})
set(mutexmgr "${mutex-manager}")

list(FIND mutexmgrs "${mutexmgr}" mutexmgr_found)
Expand Down
1 change: 1 addition & 0 deletions cmake/XercesNetAccessorSelection.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ if(network)
string(REPLACE ";" "|" netaccessor_help "${netaccessors}")
list(GET netaccessors 0 xerces_netaccessor_default)
set(network-accessor "${xerces_netaccessor_default}" CACHE STRING "Network accessor (${netaccessor_help})")
set_property(CACHE network-accessor PROPERTY STRINGS ${netaccessors})
set(netaccessor "${network-accessor}")

list(FIND netaccessors "${netaccessor}" netaccessor_found)
Expand Down
1 change: 1 addition & 0 deletions cmake/XercesTranscoderSelection.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ endif()
string(REPLACE ";" "|" transcoder_help "${transcoders}")
list(GET transcoders 0 xerces_transcoder_default)
set(transcoder "${xerces_transcoder_default}" CACHE STRING "Transcoder (${transcoder_help})")
set_property(CACHE transcoder PROPERTY STRINGS ${transcoders})
set(transcoder "${transcoder}")

list(FIND transcoders "${transcoder}" transcoder_found)
Expand Down
1 change: 1 addition & 0 deletions cmake/XercesXMLCh.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ list(APPEND xmlch_types uint16_t)
string(REPLACE ";" "|" xmlch_type_help "${xmlch_types}")
list(GET xmlch_types 0 xerces_xmlch_type_default)
set(xmlch-type "${xerces_xmlch_type_default}" CACHE STRING "XMLCh type (${xmlch_type_help})")
set_property(CACHE xmlch-type PROPERTY STRINGS ${xmlch_types})
set(xmlch_type "${xmlch-type}")

list(FIND xmlch_types "${xmlch_type}" xmlch_type_found)
Expand Down