We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3629164 commit c82c586Copy full SHA for c82c586
Code/CMake/SimVascularSystemSetup.cmake
@@ -157,6 +157,13 @@ if(APPLE)
157
# Assuming use mac os if APPLE
158
set(SV_PLATFORM_DIR "mac_osx" CACHE STRING "The distribution platform being used.")
159
160
+ # Safely fetch CURRENT_OSX_VERSION if undefined
161
+ if(NOT DEFINED CURRENT_OSX_VERSION OR CURRENT_OSX_VERSION STREQUAL "")
162
+ execute_process(COMMAND sw_vers -productVersion
163
+ OUTPUT_VARIABLE CURRENT_OSX_VERSION
164
+ OUTPUT_STRIP_TRAILING_WHITESPACE)
165
+ endif()
166
+
167
# Get just major minor version of osx
168
simvascular_get_major_minor_version(${CURRENT_OSX_VERSION} SV_OSX_MAJOR_VERSION SV_OSX_MINOR_VERSION)
169
0 commit comments