Browse Source
made jit model builder work on Ubuntu 16.04/g++
made jit model builder work on Ubuntu 16.04/g++
Former-commit-id:tempestpy_adaptionsc9473408cc
[formerlydca321927e
] Former-commit-id:1bcd57f6da
dehnert
8 years ago
4 changed files with 14 additions and 16 deletions
-
6CMakeLists.txt
-
7resources/3rdparty/include_cpptemplate.cmake
-
2src/builder/jit/Choice.h
-
15src/builder/jit/ExplicitJitJaniModelBuilder.cpp
@ -1,18 +1,19 @@ |
|||
string(REPLACE " " ";" CMAKE_CXX_FLAGS_AS_LIST ${CMAKE_CXX_FLAGS}) |
|||
ExternalProject_Add( |
|||
cpptemplate |
|||
DOWNLOAD_COMMAND "" |
|||
SOURCE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/cpptemplate |
|||
PREFIX ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate |
|||
CONFIGURE_COMMAND "" |
|||
BUILD_COMMAND ${CMAKE_CXX_COMPILER} -std=c++14 -stdlib=libc++ -O3 -I${Boost_INCLUDE_DIRS} -I${STORM_3RDPARTY_SOURCE_DIR}/utf8_v2_3_4/source -shared ${STORM_3RDPARTY_SOURCE_DIR}/cpptemplate/cpptempl.cpp -o ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate/cpptemplate${DYNAMIC_EXT} |
|||
BUILD_COMMAND ${CMAKE_CXX_COMPILER} -c ${CMAKE_CXX_FLAGS_AS_LIST} -fPIC -I${Boost_INCLUDE_DIRS} -I${STORM_3RDPARTY_SOURCE_DIR}/utf8_v2_3_4/source ${STORM_3RDPARTY_SOURCE_DIR}/cpptemplate/cpptempl.cpp -o ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate/cpptemplate${STATIC_EXT} |
|||
INSTALL_COMMAND "" |
|||
BUILD_IN_SOURCE 0 |
|||
LOG_BUILD ON |
|||
) |
|||
|
|||
set(CPPTEMPLATE_INCLUDE_DIR ${STORM_3RDPARTY_SOURCE_DIR}/cpptemplate) |
|||
set(CPPTEMPLATE_SHARED_LIBRARY ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate/cpptemplate${DYNAMIC_EXT}) |
|||
list(APPEND STORM_LINK_LIBRARIES ${CPPTEMPLATE_SHARED_LIBRARY}) |
|||
set(CPPTEMPLATE_STATIC_LIBRARY ${STORM_3RDPARTY_BINARY_DIR}/cpptemplate/cpptemplate${STATIC_EXT}) |
|||
list(APPEND STORM_LINK_LIBRARIES ${CPPTEMPLATE_STATIC_LIBRARY}) |
|||
add_dependencies(resources cpptemplate) |
|||
|
|||
message(STATUS "StoRM - Linking with cpptemplate") |
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue