Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Move dev build toggle to the cccl project level.
Browse files Browse the repository at this point in the history
This allows the install rules to be generated for all projects even
when the dev builds are disabled.
  • Loading branch information
alliepiper committed Jun 6, 2023
1 parent 0d97ac1 commit 21e8f32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ project(Thrust LANGUAGES NONE)

# Determine whether Thrust is the top-level project or included into
# another project via add_subdirectory()
if (CCCL_TOPLEVEL_PROJECT OR
"${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_LIST_DIR}")
if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_LIST_DIR}")
set(THRUST_TOPLEVEL_PROJECT ON)
endif()

Expand Down

0 comments on commit 21e8f32

Please sign in to comment.