aboutsummaryrefslogtreecommitdiff
path: root/conanfile.py
diff options
context:
space:
mode:
authortt4g <mainlinett@gmail.com>2020-03-06 21:10:32 +0900
committerpoletti-marco <poletti.marco@gmail.com>2020-03-08 10:09:33 -0700
commitff48522def02df6de465c76658bab8c8b8b155fe (patch)
treeaec7cc15f64f4b30820c36ae229b17f63285c44d /conanfile.py
parente85c88edfcdf67faf8209a3ff2f6b3193f532e1c (diff)
downloadgoogle-fruit-ff48522def02df6de465c76658bab8c8b8b155fe.tar.gz
Fix conan tools.replace_in_file() patch
Diffstat (limited to 'conanfile.py')
-rw-r--r--conanfile.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/conanfile.py b/conanfile.py
index aea1b50..7e2bb5d 100644
--- a/conanfile.py
+++ b/conanfile.py
@@ -43,11 +43,12 @@ class FruitConan(ConanFile):
# This small hack might be useful to guarantee proper /MT /MD linkage
# in MSVC if the packaged project doesn't have variables to set it
# properly
+ cmake_project = "project(Fruit VERSION %s LANGUAGES CXX)" % (self.version,)
tools.replace_in_file(os.path.join(self._source_subfolder, "CMakeLists.txt"),
- "project(Fruit)",
- '''PROJECT(Myfruit)
+ cmake_project,
+ (cmake_project + '''
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
-conan_basic_setup()''')
+conan_basic_setup()'''))
def _configure_cmake(self):
cmake = CMake(self)