File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -16,19 +16,6 @@ include(CheckCXXSourceCompiles)
1616include (CMakePackageConfigHelpers)
1717include (CTest)
1818
19- list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
20- include (helpers)
21-
22- if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
23- set (Python3_FIND_FRAMEWORK NEVER)
24- set (Python3_FIND_STRATEGY LOCATION )
25- endif ()
26-
27- find_package (Python3 COMPONENTS Interpreter REQUIRED)
28-
29- set (CMAKE_CXX_STANDARD 17)
30- set (CMAKE_CXX_STANDARD_REQUIRED YES )
31-
3219# Build Options
3320option (UR_BUILD_EXAMPLES "Build example applications." ON )
3421option (UR_BUILD_TESTS "Build unit tests." ON )
@@ -81,6 +68,19 @@ set(UR_ADAPTER_HIP_SOURCE_DIR "" CACHE PATH
8168set (UR_ADAPTER_NATIVE_CPU_SOURCE_DIR "" CACHE PATH
8269 "Path to external 'native_cpu' adapter source dir" )
8370
71+ list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
72+ include (helpers)
73+
74+ if (CMAKE_SYSTEM_NAME STREQUAL Darwin)
75+ set (Python3_FIND_FRAMEWORK NEVER)
76+ set (Python3_FIND_STRATEGY LOCATION )
77+ endif ()
78+
79+ find_package (Python3 COMPONENTS Interpreter REQUIRED)
80+
81+ set (CMAKE_CXX_STANDARD 17)
82+ set (CMAKE_CXX_STANDARD_REQUIRED YES )
83+
8484# There's little reason not to generate the compile_commands.json
8585set (CMAKE_EXPORT_COMPILE_COMMANDS ON )
8686
You can’t perform that action at this time.
0 commit comments