Merge pull request #1 from trailofbits/user_install_clang4
Allow for user specific installs, build with Clang 4.0
This commit is contained in:
+9
-1
@@ -76,6 +76,14 @@ add_custom_command(
|
||||
add_custom_target(target ALL DEPENDS ${OUTPUT})
|
||||
|
||||
# Install DeepState via PIP.
|
||||
install(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install)")
|
||||
|
||||
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
#if an install prefix is not set, assume a global install
|
||||
install(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install)")
|
||||
else()
|
||||
# and install prefix is set; assume a user install
|
||||
# the "prefix=" is intentional
|
||||
install(CODE "execute_process(COMMAND ${PYTHON} ${SETUP_PY} install --user --prefix=)")
|
||||
endif()
|
||||
|
||||
add_subdirectory(examples)
|
||||
|
||||
@@ -69,7 +69,7 @@ class Stream {
|
||||
DEEPSTATE_DEFINE_STREAMER(CStr, const char *, val)
|
||||
DEEPSTATE_DEFINE_STREAMER(CStr, char *, const_cast<const char *>(val))
|
||||
|
||||
DEEPSTATE_DEFINE_STREAMER(Pointer, nullptr_t, nullptr)
|
||||
DEEPSTATE_DEFINE_STREAMER(Pointer, std::nullptr_t, nullptr)
|
||||
|
||||
template <typename T>
|
||||
DEEPSTATE_DEFINE_STREAMER(Pointer, T *, val);
|
||||
|
||||
Reference in New Issue
Block a user