[CMake] segfault with ccmake, not with cmake
Prakash Punnoor
prakash at punnoor.de
Sun Apr 22 04:07:01 EDT 2007
Hi,
this is my minimal test case:
# CMake project file by Prakash Punnoor
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
Project(Aften C)
OPTION(SHARED "build shared Aften library" OFF)
OPTION(BINDINGS_CXX "build C++ bindings" OFF)
IF(BINDINGS_CXX)
SET(SHARED ON CACHE BOOL "build shared Aften library" FORCE)
ENDIF(BINDINGS_CXX)
IF(SHARED)
ADD_LIBRARY(aften SHARED libaften/a52enc.c)
ENDIF(SHARED)
IF(BINDINGS_CXX)
Project(Aften CXX)
ADD_LIBRARY(aftenxx SHARED bindings/aftenxx.cxx)
TARGET_LINK_LIBRARIES(aftenxx aften)
ENDIF(BINDINGS_CXX)
I do following in out-of-tree build:
cmake ..
ccmake ..
set BINDINGS_CXX to on
press c
press g
-> segfault
If I just run
cmake .. -DBINDINGS_CXX=1
I don't have problems. Even running cmake .. after the segfault is OK.
It seem if I specify the CXX language in the first Project statement, I don't
get the segfault, but I want to conditionally enable c++.
Cheers,
--
(°= =°)
//\ Prakash Punnoor /\\
V_/ \_V
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://public.kitware.com/pipermail/cmake/attachments/20070422/c29f431b/attachment.pgp
More information about the CMake
mailing list