Skip to content

Commit

Permalink
Do not export when running from conan
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavezac committed Mar 22, 2021
1 parent 527501f commit 24f424c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -38,9 +38,9 @@ if(tests)
add_subdirectory(tests)
endif()

if(NOT SKBUILD)
if(NOT SKBUILD AND NOT CONAN_EXPORTED)
include("${PROJECT_SOURCE_DIR}/cmake/exporting.cmake")
else()
elseif(NOT CONAN_EXPORTED)
find_package(PythonExtensions REQUIRED)
find_package(Cython REQUIRED)
find_package(NumPy REQUIRED)
Expand Down

0 comments on commit 24f424c

Please sign in to comment.