mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
CMake: Edit threading related messages.
It's mostly to change from "thread method" to "threading method".
This commit is contained in:
parent
bf01135252
commit
3a1e9fd031
1 changed files with 10 additions and 9 deletions
|
@ -327,32 +327,33 @@ endforeach()
|
||||||
# Threading #
|
# Threading #
|
||||||
#############
|
#############
|
||||||
|
|
||||||
# Supported thread methods:
|
# Supported threading methods:
|
||||||
# ON - autodetect the best threading method. The autodetection will
|
# ON - autodetect the best threading method. The autodetection will
|
||||||
# prefer Windows threading (win95 or vista) over posix if both are
|
# prefer Windows threading (win95 or vista) over posix if both are
|
||||||
# available. vista threads will be used over win95 unless it is a
|
# available. vista threads will be used over win95 unless it is a
|
||||||
# 32-bit build.
|
# 32-bit build.
|
||||||
# OFF - Disable threading.
|
# OFF - Disable threading.
|
||||||
# posix - Use posix threading, or throw an error if not available.
|
# posix - Use posix threading (pthreads), or throw an error if not available.
|
||||||
# win95 - Use Windows win95 threading, or throw an error if not available.
|
# win95 - Use Windows win95 threading, or throw an error if not available.
|
||||||
# vista - Use Windows vista threading, or throw an error if not available.
|
# vista - Use Windows vista threading, or throw an error if not available.
|
||||||
set(SUPPORTED_THREAD_METHODS ON OFF posix win95 vista)
|
set(SUPPORTED_THREADING_METHODS ON OFF posix win95 vista)
|
||||||
|
|
||||||
set(ENABLE_THREADS ON CACHE STRING
|
set(ENABLE_THREADS ON CACHE STRING
|
||||||
"Threading method type to support. Set to 'OFF' to disable threading")
|
"Threading method: Set to 'ON' to autodetect, 'OFF' to disable threading.")
|
||||||
|
|
||||||
# Create dropdown in CMake GUI since only 1 threading method is possible
|
# Create dropdown in CMake GUI since only 1 threading method is possible
|
||||||
# to select in a build.
|
# to select in a build.
|
||||||
set_property(CACHE ENABLE_THREADS
|
set_property(CACHE ENABLE_THREADS
|
||||||
PROPERTY STRINGS "${SUPPORTED_THREAD_METHODS}")
|
PROPERTY STRINGS "${SUPPORTED_THREADING_METHODS}")
|
||||||
|
|
||||||
# This is a flag variable set when win95 threads are used. We must ensure
|
# This is a flag variable set when win95 threads are used. We must ensure
|
||||||
# the combination of enable_small and win95 threads is not used without a
|
# the combination of enable_small and win95 threads is not used without a
|
||||||
# compiler supporting attribute __constructor__.
|
# compiler supporting attribute __constructor__.
|
||||||
set(USE_WIN95_THREADS OFF)
|
set(USE_WIN95_THREADS OFF)
|
||||||
|
|
||||||
if(NOT ENABLE_THREADS IN_LIST SUPPORTED_THREAD_METHODS)
|
if(NOT ENABLE_THREADS IN_LIST SUPPORTED_THREADING_METHODS)
|
||||||
message(FATAL_ERROR "'${ENABLE_THREADS}' is not a supported thread type")
|
message(FATAL_ERROR "'${ENABLE_THREADS}' is not a supported "
|
||||||
|
"threading method")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ENABLE_THREADS)
|
if(ENABLE_THREADS)
|
||||||
|
@ -399,7 +400,7 @@ if(ENABLE_THREADS)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
message(SEND_ERROR
|
message(SEND_ERROR
|
||||||
"Windows thread method requested, but a compatible "
|
"Windows threading method was requested but a compatible "
|
||||||
"library could not be found")
|
"library could not be found")
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
|
|
Loading…
Reference in a new issue