Skip to content

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

interpreter/cling/lib/Interpreter/CMakeLists.txt

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -317,25 +317,6 @@ if (UNIX)
317317
#define CLING_CXX_INCL \"${CLING_CXX_HEADERS}\"
318318
#define CLING_INCLUDE_PATHS \"${CLING_INCLUDE_PATHS}\"
319319
")
320-
if (CMAKE_OSX_SYSROOT)
321-
# CMAKE_OSX_SYSROOT hardcodes the concrete version of the sdk
322-
# (eg .../MacOSX11.1.sdk) which changes after every update of XCode. We use
323-
# the assumption that in the parent folder there is a symlink MacOSX.sdk
324-
# which points to the current active sdk. This change allows releases
325-
# to work when the users update their sdks.
326-
# FIXME: That is a horrible hack and we should teach CIFactory to pick up
327-
# the SDK directory at runtime, just as we do for the include paths to C++.
328-
set (OSX_SYSROOT_DEFAULT_SDK ${CMAKE_OSX_SYSROOT})
329-
if (${OSX_SYSROOT_DEFAULT_SDK} MATCHES "MacOSX[.0-9]+\.sdk")
330-
get_filename_component(OSX_SYSROOT_DEFAULT_SDK ${OSX_SYSROOT_DEFAULT_SDK} DIRECTORY)
331-
set (OSX_SYSROOT_DEFAULT_SDK ${OSX_SYSROOT_DEFAULT_SDK}/MacOSX.sdk/)
332-
endif()
333-
334-
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cling-compiledata.h.in
335-
"
336-
#define CLING_OSX_SYSROOT \"${OSX_SYSROOT_DEFAULT_SDK}\"
337-
")
338-
endif()
339320
if (CLING_CXX_PATH)
340321
MESSAGE(STATUS "And if not found, will invoke: '${CLING_CXX_PATH}' for them.")
341322
file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/cling-compiledata.h.in

0 commit comments

Comments
 (0)