Check if custom compiler (--cc=) / compiler flag (-mxx, -Ox, -L, ...) are avialable
Handle libgc better
Better code style
Now it will work like following:
$ cmake .
-- The C compiler identification is GNU 5.1.0
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- The CXX compiler identification is GNU 5.1.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test FLAG_pg
-- Performing Test FLAG_pg - Success
-- Performing Test FLAG_O0
-- Performing Test FLAG_O0 - Success
-- Performing Test FLAG_fno-inline
-- Performing Test FLAG_fno-inline - Success
-- Performing Test FLAG_{CMAKE_DET_ARCH_FLAG}
-- Performing Test FLAG_{CMAKE_DET_ARCH_FLAG} - Success
-- Performing Test FLAG_std=gnu99
-- Performing Test FLAG_std=gnu99 - Success
-- Performing Test FLAG_Irock_tmp
-- Performing Test FLAG_Irock_tmp - Success
-- Performing Test FLAG_D__OOC_USE_GC__
-- Performing Test FLAG_D__OOC_USE_GC__ - Success
-- Performing Test FLAG_DGC_NO_THREAD_REDIRECTS
-- Performing Test FLAG_DGC_NO_THREAD_REDIRECTS - Success
-- Performing Test FLAG_D__OOC_DEBUG__
-- Performing Test FLAG_D__OOC_DEBUG__ - Success
-- Found System: Linux
-- checking for module 'bdw-gc'
-- found bdw-gc, version 7.4.2
-- Using Boehm GC library: /usr/local/lib/libgc.a
-- Static Boehm GC needs -pthread flag
-- Performing Test FLAG_pthread
-- Performing Test FLAG_pthread - Success
-- Configuring done
-- Generating done
-- Build files have been written to:rock/build
Content:
Now it will work like following: