File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,9 @@ get_filename_component(CPPINTEROP_INSTALL_PREFIX "${CPPINTEROP_INSTALL_PREFIX}"
66get_filename_component (CPPINTEROP_INSTALL_PREFIX "${CPPINTEROP_INSTALL_PREFIX} " PATH )
77get_filename_component (CPPINTEROP_INSTALL_PREFIX "${CPPINTEROP_INSTALL_PREFIX} " PATH )
88
9+ # Determine CMAKE_SHARED_LIBRARY_SUFFIX based on operating system
10+ include (CMakeSystemSpecificInformation)
11+
912### build/install workaround
1013
1114if (IS_DIRECTORY "${CPPINTEROP_INSTALL_PREFIX} /include" )
Original file line number Diff line number Diff line change @@ -96,7 +96,11 @@ createClangInterpreter(std::vector<const char*>& args) {
9696 };
9797 auto it = std::find_if (args.begin (), args.end (), has_arg);
9898 std::vector<const char *> gpu_args = {it, args.end ()};
99- bool CudaEnabled = !gpu_args.empty ();
99+ #ifdef __APPLE__
100+ bool CudaEnabled = false ;
101+ #else
102+ bool CudaEnabled = !gpu_args.empty ();
103+ #endif
100104
101105 clang::IncrementalCompilerBuilder CB;
102106 CB.SetCompilerArgs ({args.begin (), it});
You can’t perform that action at this time.
0 commit comments