Skip to content

Commit

Permalink
Test where code is executed, by exception
Browse files Browse the repository at this point in the history
  • Loading branch information
achaikou committed Jul 30, 2024
1 parent 5997705 commit 464264f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
message(FATAL_ERROR "The lib cMakeLists.txt")

set(DLISIO_LIB_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "")

add_library(dlisio src/dlis/dlisio.cpp
Expand Down
6 changes: 6 additions & 0 deletions python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ if (SKBUILD)
return ()
endif ()

message(STATUS "in main CMakeLists.txt")

cmake_minimum_required(VERSION 3.5.0)
project(dlisio-python)

if(NOT BUILD_PYTHON)
return()
endif()

message(STATUS "Info from main after python on CMakeLists.txt")

find_package(PythonInterp REQUIRED)

if(NOT PYTHON_EXECUTABLE)
Expand Down Expand Up @@ -143,3 +147,5 @@ add_test(NAME python.unit
COMMAND ${python} -m pytest tests
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
)

message(FATAL_ERROR "Made it to the end of CMakeLists.txt")
2 changes: 2 additions & 0 deletions python/setup-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
cmake_minimum_required(VERSION 3.5.0)
project(dlisio-python-extension LANGUAGES C CXX)

message(FATAL_ERROR "Exception from setup-CMakeLists.txt")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_VISIBILITY_PRESET "hidden")
set(CMAKE_C_VISIBILITY_PRESET "hidden")
Expand Down

0 comments on commit 464264f

Please sign in to comment.