Commit 058266d745d3db63d04046a3ee17aa567def612a
1 parent
ae1688b1
Fixed some windows related issues, not including tasm in compilation yet
Showing
4 changed files
with
5 additions
and
3 deletions
3rdparty/stasm/stasm/CMakeLists.txt
| @@ -19,6 +19,6 @@ set_target_properties(stasm PROPERTIES | @@ -19,6 +19,6 @@ set_target_properties(stasm PROPERTIES | ||
| 19 | target_link_libraries(stasm ${OpenCV_LIBS} ${Qt5Core_QTMAIN_LIBRARIES}) | 19 | target_link_libraries(stasm ${OpenCV_LIBS} ${Qt5Core_QTMAIN_LIBRARIES}) |
| 20 | 20 | ||
| 21 | install(DIRECTORY stasm/include/ DESTINATION include/stasm) | 21 | install(DIRECTORY stasm/include/ DESTINATION include/stasm) |
| 22 | -install(DIRECTORY tasm/include/ DESTINATION include/tasm) | 22 | +#install(DIRECTORY tasm/include/ DESTINATION include/tasm) |
| 23 | 23 | ||
| 24 | install(TARGETS stasm RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) | 24 | install(TARGETS stasm RUNTIME DESTINATION bin LIBRARY DESTINATION lib ARCHIVE DESTINATION lib) |
3rdparty/stasm/stasm/stasm/src/err.cpp
| @@ -28,6 +28,8 @@ | @@ -28,6 +28,8 @@ | ||
| 28 | #include "err.h" | 28 | #include "err.h" |
| 29 | #include "misc.h" | 29 | #include "misc.h" |
| 30 | 30 | ||
| 31 | +#include <stdarg.h> | ||
| 32 | + | ||
| 31 | namespace stasm | 33 | namespace stasm |
| 32 | { | 34 | { |
| 33 | static char err_g[SBIG]; // err msg saved for retrieval by LastErr and stasm_lasterr | 35 | static char err_g[SBIG]; // err msg saved for retrieval by LastErr and stasm_lasterr |
3rdparty/stasm/stasm/stasm/src/print.cpp
share/openbr/cmake/FindStasm4.cmake
| @@ -22,14 +22,13 @@ foreach(CACHE_VAR ${CACHE_VARS}) | @@ -22,14 +22,13 @@ foreach(CACHE_VAR ${CACHE_VARS}) | ||
| 22 | else() | 22 | else() |
| 23 | set(CACHE_VAR_TYPE :${CACHE_VAR_TYPE}) | 23 | set(CACHE_VAR_TYPE :${CACHE_VAR_TYPE}) |
| 24 | endif() | 24 | endif() |
| 25 | - | ||
| 26 | if(CACHE_VAR STREQUAL "CMAKE_PREFIX_PATH") | 25 | if(CACHE_VAR STREQUAL "CMAKE_PREFIX_PATH") |
| 27 | set(CMAKE_PREFIX_PATH "\"${${CACHE_VAR}}\"") | 26 | set(CMAKE_PREFIX_PATH "\"${${CACHE_VAR}}\"") |
| 28 | endif() | 27 | endif() |
| 29 | endif() | 28 | endif() |
| 30 | endforeach() | 29 | endforeach() |
| 31 | 30 | ||
| 32 | -find_path(STASM4_SOURCE_DIR stasm/include/stasm_lib.h ${CMAKE_SOURCE_DIR}/3rdparty/*) | 31 | +find_path(STASM4_SOURCE_DIR stasm/stasm/include/stasm_lib.h ${CMAKE_SOURCE_DIR}/3rdparty/*) |
| 33 | 32 | ||
| 34 | set(STASM4_PREFIX "${CMAKE_BINARY_DIR}/stasm") | 33 | set(STASM4_PREFIX "${CMAKE_BINARY_DIR}/stasm") |
| 35 | set(STASM4_INSTALL_DIR "${CMAKE_BINARY_DIR}/stasm") | 34 | set(STASM4_INSTALL_DIR "${CMAKE_BINARY_DIR}/stasm") |