diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 2c4cdb62da5..e3ce376ff7d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,10 +149,13 @@ mark_as_advanced(WITH_AUDASPACE) # (unix defaults to OpenMP On) if(UNIX AND NOT APPLE) - option(WITH_OPENMP "Enable OpenMP (has to be supported by the compiler)" ON) + set(PLATFORM_DEFAULT ON) else() - option(WITH_OPENMP "Enable OpenMP (has to be supported by the compiler)" OFF) + set(PLATFORM_DEFAULT OFF) endif() +option(WITH_OPENMP "Enable OpenMP (has to be supported by the compiler)" PLATFORM_DEFAULT) +unset(PLATFORM_DEFAULT) + if(UNIX AND NOT APPLE) option(WITH_X11_XINPUT "Enable X11 Xinput (tablet support and unicode input)" ON) |