Skip to content

Commit

Permalink
DeepState added through CMake add_subdirectory experiment
Browse files Browse the repository at this point in the history
For now blocked by trailofbits/deepstate#373
  • Loading branch information
laurynas-biveinis committed Mar 24, 2021
1 parent 3e620ed commit 1e85494
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,22 +240,7 @@ add_subdirectory(3rd_party/benchmark)

# TODO(laurynas): fix DeepState and GCC compatibility
if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
include(ExternalProject)
ExternalProject_Add(3rd_party_deepstate
SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rd_party/deepstate"
BINARY_DIR "${CMAKE_BINARY_DIR}/3rd_party/deepstate"
CMAKE_ARGS "-DCMAKE_C_COMPILER=${CMAKE_C_COMPILER}"
"-DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}" "-DCMAKE_C_FLAGS=-w"
"-DCMAKE_CXX_FLAGS=-w"
INSTALL_COMMAND "")

add_library(deepstate STATIC IMPORTED)

ExternalProject_Get_property(3rd_party_deepstate SOURCE_DIR)
target_include_directories(deepstate INTERFACE "${SOURCE_DIR}/src/include/")
ExternalProject_Get_property(3rd_party_deepstate BINARY_DIR)
set_target_properties(deepstate PROPERTIES IMPORTED_LOCATION
"${BINARY_DIR}/libdeepstate.a")
add_subdirectory(3rd_party/deepstate)
endif()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU"
Expand Down

0 comments on commit 1e85494

Please sign in to comment.