Skip to content

Commit

Permalink
Merge pull request #148 from d99kris/no-global-ccache
Browse files Browse the repository at this point in the history
Enable ccache only when tests are enabled
  • Loading branch information
d99kris committed Jul 30, 2023
2 parents 9fcf2c7 + a8ee844 commit 9d9c2cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,6 @@ endif()
add_library(rapidcsv INTERFACE)
target_include_directories(rapidcsv INTERFACE src)

# Ccache
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
message(STATUS "Found ccache")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()

# Tests
option(RAPIDCSV_BUILD_TESTS "Build tests" OFF)
message(STATUS "Build tests: ${RAPIDCSV_BUILD_TESTS}")
Expand All @@ -48,6 +41,13 @@ if(RAPIDCSV_BUILD_TESTS)
include(CTest)
enable_testing()

# Ccache
find_program(CCACHE_PROGRAM ccache)
if(CCACHE_PROGRAM)
message(STATUS "Found ccache")
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${CCACHE_PROGRAM}")
endif()

# Enable codecvt tests if supported
if (CMAKE_CXX_STANDARD VERSION_LESS "17")
include(CheckIncludeFileCXX)
Expand Down
2 changes: 1 addition & 1 deletion src/rapidcsv.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* rapidcsv.h
*
* URL: https://github.com/d99kris/rapidcsv
* Version: 8.78
* Version: 8.79
*
* Copyright (C) 2017-2023 Kristofer Berggren
* All rights reserved.
Expand Down

0 comments on commit 9d9c2cc

Please sign in to comment.