Skip to content
Snippets Groups Projects
Commit ecc8d408 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

temp changes. [skip ci]

parent 8fa511cf
No related branches found
No related tags found
No related merge requests found
...@@ -475,27 +475,6 @@ if(${CMAKE_BUILD_TOOL} MATCHES "make") ...@@ -475,27 +475,6 @@ if(${CMAKE_BUILD_TOOL} MATCHES "make")
) )
endif() endif()
# Target for creating bdist. This is handy for creating bdist for packaging.
# Save the binary distribution (tar.gz) to PYMOOSE_BDIST_DIR. Note that this
# target is only useful when creating packages on Open Build Service i.e. if you
# use this target on distribution X, it may not work on distrbutions other than
# X. See python-wheels for making portable distributions.
if(NOT PYMOOSE_BDIST_DIR)
set(PYMOOSE_BDIST_DIR ${CMAKE_BINARY_DIR}/pymoose_bdist)
endif( )
# get platform and arch using python.
# NOTE: creating bdist or bdist_dump uses /usr and /usr/local on rpm and deb
# based unix respectively. Not a great situation to be in. Need to write a
# setup.cfg file to fix the prefix in all cases.
find_package( PythonInterp REQUIRED)
add_custom_target( bdist
COMMAND ${PYTHON_EXECUTABLE} setup.cmake.py bdist_dumb -d ${PYMOOSE_BDIST_DIR}
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/python
COMMENT "Genearating bdist using setup.cmake.py."
VERBATIM
)
############################ CTEST ###################################### ############################ CTEST ######################################
include( CTest ) include( CTest )
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment