Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string sub-command REPLACE requires at least four arguments. #14

Open
evandrocoan opened this issue Mar 21, 2019 · 3 comments
Open

string sub-command REPLACE requires at least four arguments. #14

evandrocoan opened this issue Mar 21, 2019 · 3 comments

Comments

@evandrocoan
Copy link

evandro@evandro-pc:~$ git clone https://github.com/signalwire/signalwire-c /tmp/signalwire-c
Cloning into '/tmp/signalwire-c'...
remote: Enumerating objects: 224, done.
remote: Counting objects: 100% (224/224), done.
remote: Compressing objects: 100% (127/127), done.
remote: Total 224 (delta 107), reused 190 (delta 84), pack-reused 0
Receiving objects: 100% (224/224), 185.15 KiB | 710.00 KiB/s, done.
Resolving deltas: 100% (107/107), done.
evandro@evandro-pc:~$ cd /tmp/signalwire-c
evandro@evandro-pc:/tmp/signalwire-c$ 
evandro@evandro-pc:/tmp/signalwire-c$ cmake .
-- cotire 1.7.10 loaded.
-- The C compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
Signalwire-Client-C 1.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for module 'libks'
--   Found libks, version 1.1.0
Found LibKS 1.1.0 package at path /usr/include/libks
Platform is linux
Build type: Debug CXX Flags: 
Install prefix: /usr/local
-- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "1.1.0g") 
Platform is linux
Build type: Debug CXX Flags: 
Install prefix: /usr/local
-- Found Git: /usr/bin/git (found version "2.17.1") 
CMake Error at CMakeLists.txt:168 (string):
  string sub-command REPLACE requires at least four arguments.


-- C target signalwire_client cotired.
-- C target swclt_test cotired without unity build.
-- Configuring incomplete, errors occurred!
See also "/tmp/signalwire-c/CMakeFiles/CMakeOutput.log".

cmake version 3.10.2

@andywolk
Copy link
Contributor

How do you clone the repo? Download from GitHub or do git clone?
@s3rj1k I suspect ${CHANGELOG} is empty at line 168 string(REPLACE "\"" "" CHANGELOG ${CHANGELOG})
https://github.com/signalwire/signalwire-c/blob/master/CMakeLists.txt#L168

@andywolk
Copy link
Contributor

andywolk commented Mar 22, 2019

Ohh. I missed the fact that the answer is in the log. You clone with git.
@s3rj1k Do you have an idea what's wrong?

@evandrocoan
Copy link
Author

I fixed it by changing month to year:

execute_process(COMMAND ${GIT_EXECUTABLE} log --no-merges --pretty=format:"%n [%an]%n * %s" --since="last month"

There were no commits on the last month, then, the value of the variable is empty.

Why are you doing this? The change from month to year will not fix it forever, i.e., on the next year, if not commits come, this will crash again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants