On Sat, Dec 24, 2011 at 4:11 PM, Bill Hoffman <[email protected]> wrote:
>> Thank you. I tried that but it's failing: since no project in the
>> whole project tree is defined as C++ (i. e. everything is
>> "project(blah C)"), the generation step fails with:
>>
>> CMake Error: Error required internal CMake variable not set, cmake may
>> be not be built correctly.
>> Missing variable is:
>> CMAKE_CXX_FLAGS_DEBUG
>>
>> I've opened issue #12639 for this and attached a minimal case, and a
>> workaround:
>> http://public.kitware.com/Bug/view.php?id=12639
>>
>>
> I am thinking if you want to compile with C++, you need to enable the c++
> language.  You can call enable_language(CXX) inside the if.

You are right. That solves the issue, thank you.

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to