BUG: Need TSD target to be built before SimpleInstall.

This commit is contained in:
Brad King 2005-08-08 11:33:47 -04:00
parent d6a3268b3e
commit 2c658a6300
2 changed files with 10 additions and 8 deletions

View File

@ -42,10 +42,6 @@ IF(STAGE2)
INSTALL_TARGETS(/bin SimpleInstallS2) INSTALL_TARGETS(/bin SimpleInstallS2)
ELSE(STAGE2) ELSE(STAGE2)
IF(CMAKE_GENERATOR MATCHES "Makefiles")
ADD_SUBDIRECTORY(TestSubDir)
ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
# this is stage 1, so create libraries and modules and install everything # this is stage 1, so create libraries and modules and install everything
ADD_LIBRARY(test1 STATIC lib1.cxx) ADD_LIBRARY(test1 STATIC lib1.cxx)
ADD_LIBRARY(test2 SHARED lib2.cxx) ADD_LIBRARY(test2 SHARED lib2.cxx)
@ -56,6 +52,11 @@ ELSE(STAGE2)
TARGET_LINK_LIBRARIES(SimpleInstall test1 test2 test4) TARGET_LINK_LIBRARIES(SimpleInstall test1 test2 test4)
SET(install_target SimpleInstall) SET(install_target SimpleInstall)
IF(CMAKE_GENERATOR MATCHES "Makefiles")
ADD_SUBDIRECTORY(TestSubDir)
ADD_DEPENDENCIES(SimpleInstall TSD)
ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
ADD_DEPENDENCIES(SimpleInstall test3) ADD_DEPENDENCIES(SimpleInstall test3)
ADD_DEPENDENCIES(test2 test3) ADD_DEPENDENCIES(test2 test3)
ADD_DEPENDENCIES(test4 test2) ADD_DEPENDENCIES(test4 test2)

View File

@ -42,10 +42,6 @@ IF(STAGE2)
INSTALL_TARGETS(/bin SimpleInstallS2) INSTALL_TARGETS(/bin SimpleInstallS2)
ELSE(STAGE2) ELSE(STAGE2)
IF(CMAKE_GENERATOR MATCHES "Makefiles")
ADD_SUBDIRECTORY(TestSubDir)
ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
# this is stage 1, so create libraries and modules and install everything # this is stage 1, so create libraries and modules and install everything
ADD_LIBRARY(test1 STATIC lib1.cxx) ADD_LIBRARY(test1 STATIC lib1.cxx)
ADD_LIBRARY(test2 SHARED lib2.cxx) ADD_LIBRARY(test2 SHARED lib2.cxx)
@ -56,6 +52,11 @@ ELSE(STAGE2)
TARGET_LINK_LIBRARIES(SimpleInstall test1 test2 test4) TARGET_LINK_LIBRARIES(SimpleInstall test1 test2 test4)
SET(install_target SimpleInstall) SET(install_target SimpleInstall)
IF(CMAKE_GENERATOR MATCHES "Makefiles")
ADD_SUBDIRECTORY(TestSubDir)
ADD_DEPENDENCIES(SimpleInstall TSD)
ENDIF(CMAKE_GENERATOR MATCHES "Makefiles")
ADD_DEPENDENCIES(SimpleInstall test3) ADD_DEPENDENCIES(SimpleInstall test3)
ADD_DEPENDENCIES(test2 test3) ADD_DEPENDENCIES(test2 test3)
ADD_DEPENDENCIES(test4 test2) ADD_DEPENDENCIES(test4 test2)