Skip to content

Commit

Permalink
Pass cmake build type to external project
Browse files Browse the repository at this point in the history
  • Loading branch information
krrishnarraj committed Feb 6, 2022
1 parent 3d8e1ca commit d9d5f2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/BuildSdk.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ set(DEPS "${CMAKE_CURRENT_BINARY_DIR}/opencl_sdk")
set(DEPS_BUILD "${DEPS}/build")
file(MAKE_DIRECTORY ${DEPS} ${DEPS_BUILD})
file(WRITE "${DEPS}/CMakeLists.txt" "${CMAKE_LIST_CONTENT}")
execute_process(WORKING_DIRECTORY "${DEPS_BUILD}" COMMAND ${CMAKE_COMMAND} -G ${CMAKE_GENERATOR} ..)
execute_process(WORKING_DIRECTORY "${DEPS_BUILD}" COMMAND ${CMAKE_COMMAND} --build .)
execute_process(WORKING_DIRECTORY "${DEPS_BUILD}" COMMAND ${CMAKE_COMMAND} -G ${CMAKE_GENERATOR} -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} ..)
execute_process(WORKING_DIRECTORY "${DEPS_BUILD}" COMMAND ${CMAKE_COMMAND} --build . --config ${CMAKE_BUILD_TYPE})

set(ENV{OCL_ROOT} "${SDK_ROOT}")

Expand Down

0 comments on commit d9d5f2f

Please sign in to comment.