Skip to content

Commit

Permalink
revert cmake changes
Browse files Browse the repository at this point in the history
  • Loading branch information
luizirber committed Nov 7, 2019
1 parent c469559 commit dee6e9d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 33 deletions.
34 changes: 3 additions & 31 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
cmake_minimum_required(VERSION 3.2)


# Options for enabling/disabling MQF binaries and tests

option(SUPRESS_BIN "Suppress building MQF binaries" OFF)
option(SUPRESS_TESTS "Suppress building MQF tests" OFF)

if(SUPRESS_BIN)
add_definitions(-DSUPRESS_BIN=1)
else()
add_definitions(-DSUPRESS_BIN=0)
endif()
if(SUPRESS_TESTS)
add_definitions(-DSUPRESS_TESTS=1)
else()
add_definitions(-DSUPRESS_TESTS=0)
endif()

# ------------------ END Of Options ------------------


set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3")

Expand Down Expand Up @@ -58,15 +38,7 @@ include_directories(${STXXL_INCLUDE_DIRS})


add_subdirectory(src)
add_subdirectory(bin)


if (NOT SUPRESS_BIN)
message("Building MQF binaries")
add_subdirectory(bin)
endif()

if (NOT DSUPRESS_TESTS)
message("Building MQF tests")
enable_testing()
add_subdirectory(tests)
endif()
enable_testing()
add_subdirectory(tests)
3 changes: 1 addition & 2 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ use cmake::Config;
fn main() {
let dst = Config::new(".")
.define("BUILD_STATIC_LIBS", "ON")
.define("SUPRESS_BIN", "ON")
.define("SUPRESS_TESTS", "ON")
.build_target("MQF")
.build();

// TODO: there are probably better ways to do this...
Expand Down

0 comments on commit dee6e9d

Please sign in to comment.