torch/cutorch — pull request #89 by bpiwowar (2014-12-09 09:55:32+00:00)
Title: Only add add linker option if compiler is clang

Building the cutorch fails when using gcc as the main compiler

CC=gcc-4.9 CXX=g++-4.9 luarocks make rocks/cutorch-scm-1.rockspec

This pull request changes the CMake file to only add -stdlib=libstdc++ if the compiler is clang