View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001757CMakepublic2005-04-08 15:482005-07-15 12:30
ReporterIker Arizmendi 
Assigned ToBill Hoffman 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001757: CONFIGURE_FILE breaks make install
DescriptionWhen the output of CONFIGURE_FILE points to a non-existent directory "XXX", eg:

  PROJECT(DST)

  ADD_LIBRARY(dst SHARED src/dst.c)
  INSTALL_TARGETS(/lib dst )

  CONFIGURE_FILE
  (
  ${DST_SOURCE_DIR}/DSTConfig.cmake.in
  ${DST_BINARY_DIR}/XXX/DSTConfig.cmake
  IMMEDIATE @ONLY
  )

the call succeeds; the directory XXX is created, the configured file is placed within and invoking "make" works as expected. However, for some reason invoking "make install" does nothing at all (literally, not even the library is installed).

But if I remove the "XXX" from the output path of CONFIGURE_FILE everything works just fine.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0002681)
Bill Hoffman (manager)
2005-07-15 12:30

I think the problem was really because the ( must be on the same line as the CONFIGURE_FILE

The following installs fine:

PROJECT(DST)

ADD_LIBRARY(dst SHARED src/dst.c)
INSTALL_TARGETS(/lib dst )

CONFIGURE_FILE(
  ${DST_SOURCE_DIR}/DSTConfig.cmake.in
  ${DST_BINARY_DIR}/XXX/DSTConfig.cmake
  IMMEDIATE @ONLY
  )

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team