Skip to content

Commit

Permalink
Merge pull request #104 from 2xB/cmakefix
Browse files Browse the repository at this point in the history
Build: Fix Kassiopeia as submodule
  • Loading branch information
richeldichel authored Apr 30, 2024
2 parents 2066ddc + f831018 commit de8687d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Documentation/gh-pages/source/kemfield_manual.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Manual
---------------

The KEMField manual is desplayed below and is alternatively available for download :download:`here <../../../KEMField/Documentation/manual/manual.pdf>`.
The KEMField manual is displayed below and available for download :download:`here <../../../KEMField/Documentation/manual/manual.pdf>`.
It can also be found in the `Github repository <https://github.com/KATRIN-Experiment/Kassiopeia/>`_.


Expand Down
16 changes: 8 additions & 8 deletions KEMField/Source/Plugins/OpenCL/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,24 @@ if (KEMField_USE_OPENCL)
execute_process(COMMAND ${CMAKE_CXX_COMPILER}
-D KEMFIELD_OPENCL_PLATFORM=${KEMField_OPENCL_PLATFORM}
-D KEMFIELD_OPENCL_DEVICE_TYPE=${KEMField_OPENCL_DEVICE_TYPE}
-o ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/GenerateOpenCLHeader
-o ${CMAKE_CURRENT_BINARY_DIR}/GenerateOpenCLHeader
-I${OpenCL_INCLUDE_DIRS}
${KEMField_OPENCL_CFLAGS}
-framework OpenCL
${SOURCE}/Plugins/OpenCL/Core/src/GenerateOpenCLHeader.cc
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
RESULT_VARIABLE COMPILE_STATUS
)
else (APPLE)
execute_process(COMMAND ${CMAKE_CXX_COMPILER}
-D KEMFIELD_OPENCL_PLATFORM=${KEMField_OPENCL_PLATFORM}
-D KEMFIELD_OPENCL_DEVICE_TYPE=${KEMField_OPENCL_DEVICE_TYPE}
-o ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/GenerateOpenCLHeader
-o ${CMAKE_CURRENT_BINARY_DIR}/GenerateOpenCLHeader
-I${OpenCL_INCLUDE_DIRS}
${KEMField_OPENCL_CFLAGS}
${SOURCE}/Plugins/OpenCL/Core/src/GenerateOpenCLHeader.cc
${OpenCL_LIBRARIES}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
RESULT_VARIABLE COMPILE_STATUS
)
endif (APPLE)
Expand All @@ -89,10 +89,10 @@ if (KEMField_USE_OPENCL)
" KEMFIELD_OPENCL_DEVICE_TYPE=${KEMField_OPENCL_DEVICE_TYPE}")
endif()

set(OPENCLPLUGIN_GENERATED_HEADER ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/kEMField_opencl_defines.h)
execute_process(COMMAND ${CMAKE_BINARY_DIR}/${PROJECT_NAME}/GenerateOpenCLHeader
set(OPENCLPLUGIN_GENERATED_HEADER ${CMAKE_CURRENT_BINARY_DIR}/kEMField_opencl_defines.h)
execute_process(COMMAND ${CMAKE_CURRENT_BINARY_DIR}/GenerateOpenCLHeader
OUTPUT_FILE ${OPENCLPLUGIN_GENERATED_HEADER}
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
RESULT_VARIABLE EXEC_STATUS
)

Expand All @@ -107,7 +107,7 @@ if (KEMField_USE_OPENCL)
endif()

#leave this binary around since it is useful for debugging if things go wrong
#execute_process(COMMAND rm GenerateOpenCLHeader WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
#execute_process(COMMAND rm GenerateOpenCLHeader WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

set (OPENCLPLUGIN_HEADERFILES
${OPENCLPLUGIN_GENERATED_HEADER}
Expand Down

0 comments on commit de8687d

Please sign in to comment.