From: Joel Holdsworth Date: Mon, 30 Dec 2013 13:34:54 +0000 (+0100) Subject: Make cotire optional disabled by default X-Git-Tag: pulseview-0.2.0~173 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=b2474b8dc0bec392d0cbe7cd18d342e3c9e42f63 Make cotire optional disabled by default --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 15a60d1e..e542200f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,6 @@ include(FindPkgConfig) include(GNUInstallDirs) set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake") -include(cotire) project(pulseview) @@ -35,6 +34,7 @@ project(pulseview) option(DISABLE_WERROR "Build without -Werror" FALSE) option(ENABLE_SIGNALS "Build with UNIX signals" TRUE) option(ENABLE_DECODE "Build with libsigrokdecode" FALSE) +option(ENABLE_TESTS "Enable cotire" FALSE) option(ENABLE_TESTS "Enable unit tests" FALSE) option(STATIC_PKGDEPS_LIBS "Statically link to (pkgconfig) libraries" FALSE) @@ -281,13 +281,17 @@ add_executable(${PROJECT_NAME} ) target_link_libraries(${PROJECT_NAME} ${PULSEVIEW_LINK_LIBS}) -cotire(${PROJECT_NAME}) if(WIN32) # Pass -mwindows so that no "DOS box" will open when PulseView is started. set_target_properties(${PROJECT_NAME} PROPERTIES LINK_FLAGS "-mwindows") endif() +if(ENABLE_COTIRE) + include(cotire) + cotire(${PROJECT_NAME}) +endif() + #=============================================================================== #= Installation #-------------------------------------------------------------------------------