Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit da76644

Browse files
adding env vars to xcode dev schemes to make it easier to run ORC in a developer-friendly mode.
1 parent 17c4a91 commit da76644

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

CMakeLists.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ FetchContent_MakeAvailable(tracy)
8686

8787
####################################################################################################
8888

89-
9089
if (NOT TARGET TBB::tbb)
9190
message(STATUS "ORC third-party: creating target 'TBB::tbb'...")
9291
FetchContent_Declare(
@@ -127,6 +126,17 @@ add_executable(orc_dogfood
127126
add_executable(orc::dogfood ALIAS orc_dogfood)
128127
set_target_properties(orc_dogfood PROPERTIES OUTPUT_NAME "orc_dogfood")
129128

129+
#
130+
# These are toggleable within Xcode's scheme editor, and will override any
131+
# found orc_config files. This way developers can set up ORC for
132+
# development/debugging without having to change the orc_config file.
133+
#
134+
if (PROJECT_IS_TOP_LEVEL)
135+
if (CMAKE_GENERATOR MATCHES "Xcode")
136+
set_property(TARGET orc_orc PROPERTY XCODE_SCHEME_ENVIRONMENT "ORC_PARALLEL_PROCESSING=0;ORC_STANDALONE_MODE=1")
137+
endif()
138+
endif()
139+
130140
foreach(_TARGET_NAME IN ITEMS orc_orc orc_dogfood)
131141

132142
if (PROJECT_IS_TOP_LEVEL)

0 commit comments

Comments
 (0)