Closed max578 closed 6 years ago
For such a simple CMakeLists.txt you should be able to just modify the following line : cmake_minimum_required(VERSION 3.6) Alternatively, just run the following command in build : gcc ../*.c -o fastq_pair Then install the executable in /bin.
Just wanted to point out that I had to add the -std=gnu99
flag for it to work on my machine, using gcc 4.8.5 on CENTOS 7 in case this is useful to anyone.
i.e. # gcc -std=gnu99 ../*.c -o fastq_pair
Terrific, thank you.
You may need to amend this command slightly since test_gzip.c
also has a main()
method.
This alternate command:
gcc -std=gnu99 ../main.c ../robstr.c ../fastq_pair.c ../is_gzipped.c -o fastq_pair
will compile the code
I am attemting to install fastq_pair locally and my system doesn't allow cmake version higher than 3.0.2. As a result, it seems imposible to compile fastq_pair: "CMake error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.6 or higher required. You are running version 3.0.2"
Any alternative ways to compile?