BUG: borland needs to have BUILD_SHARED_LIBS on for executables to work with c++

This commit is contained in:
Bill Hoffman 2002-08-22 16:16:05 -04:00
parent c4076fb287
commit 0fdfab32d1

View File

@ -1,5 +1,9 @@
CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
IF(WIN32)
SET(BUILD_SHARED_LIBS 1)
ENDIF(WIN32)
SET(SRCS
cmake.cxx
cmakewizard.cxx
@ -73,13 +77,9 @@ ENDIF (WIN32)
SET(SRCS ${SRCS} cmUnixMakefileGenerator.cxx cmUnixMakefileGenerator.h)
# create a library used by the command line and the GUI
IF (WIN32)
ADD_LIBRARY(CMakeLib SHARED ${SRCS})
ELSE (WIN32)
ADD_LIBRARY(CMakeLib ${SRCS})
ENDIF (WIN32)
# always link in the library
# the library is found here