BUG: borland needs to have BUILD_SHARED_LIBS on for executables to work with c++
This commit is contained in:
parent
c4076fb287
commit
0fdfab32d1
@ -1,5 +1,9 @@
|
|||||||
CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
|
CMAKE_MINIMUM_REQUIRED(VERSION 1.3)
|
||||||
|
|
||||||
|
IF(WIN32)
|
||||||
|
SET(BUILD_SHARED_LIBS 1)
|
||||||
|
ENDIF(WIN32)
|
||||||
|
|
||||||
SET(SRCS
|
SET(SRCS
|
||||||
cmake.cxx
|
cmake.cxx
|
||||||
cmakewizard.cxx
|
cmakewizard.cxx
|
||||||
@ -73,13 +77,9 @@ ENDIF (WIN32)
|
|||||||
|
|
||||||
SET(SRCS ${SRCS} cmUnixMakefileGenerator.cxx cmUnixMakefileGenerator.h)
|
SET(SRCS ${SRCS} cmUnixMakefileGenerator.cxx cmUnixMakefileGenerator.h)
|
||||||
|
|
||||||
|
|
||||||
# create a library used by the command line and the GUI
|
# create a library used by the command line and the GUI
|
||||||
IF (WIN32)
|
ADD_LIBRARY(CMakeLib ${SRCS})
|
||||||
ADD_LIBRARY(CMakeLib SHARED ${SRCS})
|
|
||||||
ELSE (WIN32)
|
|
||||||
ADD_LIBRARY(CMakeLib ${SRCS})
|
|
||||||
ENDIF (WIN32)
|
|
||||||
|
|
||||||
# always link in the library
|
# always link in the library
|
||||||
# the library is found here
|
# the library is found here
|
||||||
|
Loading…
x
Reference in New Issue
Block a user