Skip to content

Commit e625668

Browse files
authored
fix(cmake): error wasn't triggering (#5676)
* fix(cmake): error wasn't triggering Signed-off-by: Henry Schreiner <[email protected]> * fix(cmake): wrong name of option Signed-off-by: Henry Schreiner <[email protected]> --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent 7319402 commit e625668

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ if(CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
6565

6666
message(STATUS "CMake ${CMAKE_VERSION}")
6767

68-
if(DEFINED SKBUILD AND DEFINED $ENV{PYBIND11_GLOBAL_PREFIX})
68+
if(DEFINED SKBUILD AND DEFINED ENV{PYBIND11_GLOBAL_SDIST})
6969
message(
7070
FATAL_ERROR
71-
"PYBIND11_GLOBAL_PREFIX is not supported, use nox -s build_global or a pybind11-global SDist instead."
71+
"PYBIND11_GLOBAL_SDIST is not supported, use nox -s build_global or a pybind11-global SDist instead."
7272
)
7373
endif()
7474

0 commit comments

Comments
 (0)