Disabled annotation. Improved compilation flag for Cython

This commit is contained in:
Anne de Jong 2020-11-19 11:11:38 +01:00
parent e137ea9b9f
commit dd0b011fa3
2 changed files with 6 additions and 5 deletions

View File

@ -100,6 +100,7 @@ else()
endif(CMAKE_SYSTEM_NAME STREQUAL "Windows") endif(CMAKE_SYSTEM_NAME STREQUAL "Windows")
set(CYTHON_FLAGS "--fast-fail")
if(LASP_DEBUG) if(LASP_DEBUG)
set(TRACERNAME LASPTracer) set(TRACERNAME LASPTracer)
set(LASP_DEBUG_CYTHON=True) set(LASP_DEBUG_CYTHON=True)
@ -111,7 +112,7 @@ if(LASP_DEBUG)
add_definitions(-DDEBUG) add_definitions(-DDEBUG)
add_definitions(-DTRACER=1) add_definitions(-DTRACER=1)
# This will produce html files # This will produce html files
set(CYTHON_ANNOTATE ON) # set(CYTHON_ANNOTATE ON)
# Add the __FILENAME__ macro # Add the __FILENAME__ macro
# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(subst ${CMAKE_SOURCE_DIR}/,,$(abspath $<))\"'") # set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D__FILENAME__='\"$(subst ${CMAKE_SOURCE_DIR}/,,$(abspath $<))\"'")
else() else()

View File

@ -6,10 +6,10 @@ include(UseCython)
find_package(Numpy REQUIRED ) find_package(Numpy REQUIRED )
include_directories( include_directories(
${PYTHON_NUMPY_INCLUDE_DIR} ${PYTHON_NUMPY_INCLUDE_DIR}
. .
c c
) )
add_subdirectory(c) add_subdirectory(c)
add_subdirectory(device) add_subdirectory(device)