File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -40,4 +40,5 @@ if(WITH_NEON)
40
40
target_compile_definitions (carotene_objs PRIVATE "-DWITH_NEON" )
41
41
endif ()
42
42
43
- add_library (carotene STATIC EXCLUDE_FROM_ALL "$<TARGET_OBJECTS:carotene_objs>" )
43
+ # we add dummy file to fix XCode build
44
+ add_library (carotene STATIC EXCLUDE_FROM_ALL "$<TARGET_OBJECTS:carotene_objs>" "${CAROTENE_SOURCE_DIR} /dummy.cpp" )
Original file line number Diff line number Diff line change @@ -80,7 +80,8 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS ${carotene_defs})
80
80
# set_source_files_properties(impl.cpp $<TARGET_OBJECTS:carotene_objs> COMPILE_FLAGS "--param ipcp-unit-growth=100000 --param inline-unit-growth=100000 --param large-stack-frame-growth=5000")
81
81
endif ()
82
82
83
- add_library (tegra_hal STATIC $< TARGET_OBJECTS:carotene_objs> )
83
+ # we add dummy file to fix XCode build
84
+ add_library (tegra_hal STATIC $< TARGET_OBJECTS:carotene_objs> "dummy.cpp" )
84
85
set_target_properties (tegra_hal PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${3P_LIBRARY_OUTPUT_PATH} )
85
86
set (OPENCV_SRC_DIR "${CMAKE_SOURCE_DIR} " )
86
87
if (NOT BUILD_SHARED_LIBS )
Original file line number Diff line number Diff line change
1
+ // This file is needed for compilation on some platforms e.g. with XCode generator
2
+ // Related issue: https://gitlab.kitware.com/cmake/cmake/-/issues/17457
Original file line number Diff line number Diff line change
1
+ // This file is needed for compilation on some platforms e.g. with XCode generator
2
+ // Related issue: https://gitlab.kitware.com/cmake/cmake/-/issues/17457
You can’t perform that action at this time.
0 commit comments