Restore the add_subdirectory whitout CMakeList as cmake no longers

find files in it when running. Set policy 0014 to OLD to avoid
warnings.
This commit is contained in:
The Coriolis Project 2010-03-11 21:39:12 +00:00
parent 0fbf1ecbcd
commit 1f9fb3d425
2 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
IF(COMMAND CMAKE_POLICY) IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW) CMAKE_POLICY(SET CMP0003 NEW)
CMAKE_POLICY(SET CMP0005 NEW) CMAKE_POLICY(SET CMP0005 NEW)
CMAKE_POLICY(SET CMP0014 OLD)
ENDIF(COMMAND CMAKE_POLICY) ENDIF(COMMAND CMAKE_POLICY)
SET(CMAKE_MODULE_PATH "${CRLCORE_SOURCE_DIR}/cmake_modules/" "$ENV{HURRICANE_TOP}/share/cmake_modules/" "$ENV{IO_TOP}/share/cmake_modules/" ) SET(CMAKE_MODULE_PATH "${CRLCORE_SOURCE_DIR}/cmake_modules/" "$ENV{HURRICANE_TOP}/share/cmake_modules/" "$ENV{IO_TOP}/share/cmake_modules/" )

View File

@ -124,6 +124,7 @@
set ( VstParserGrammar ${VstParserSourceDir}/VstParserGrammar.yy ) set ( VstParserGrammar ${VstParserSourceDir}/VstParserGrammar.yy )
set ( VstParserScannerCpp ${VstParserBinaryDir}/VstParserScanner.cpp ) set ( VstParserScannerCpp ${VstParserBinaryDir}/VstParserScanner.cpp )
set ( VstParserGrammarCpp ${VstParserBinaryDir}/VstParserGrammar.cpp ) set ( VstParserGrammarCpp ${VstParserBinaryDir}/VstParserGrammar.cpp )
add_subdirectory ( alliance )
add_custom_target ( VstParser echo "Creating VST parser" ) add_custom_target ( VstParser echo "Creating VST parser" )
add_custom_command ( SOURCE ${VstParserScanner} add_custom_command ( SOURCE ${VstParserScanner}
COMMAND ${FLEX_EXECUTABLE} COMMAND ${FLEX_EXECUTABLE}
@ -152,6 +153,7 @@
set ( IocParserGrammar ${IocParserSourceDir}/IocParserGrammar.yy ) set ( IocParserGrammar ${IocParserSourceDir}/IocParserGrammar.yy )
set ( IocParserScannerCpp ${IocParserBinaryDir}/IocParserScanner.cpp ) set ( IocParserScannerCpp ${IocParserBinaryDir}/IocParserScanner.cpp )
set ( IocParserGrammarCpp ${IocParserBinaryDir}/IocParserGrammar.cpp ) set ( IocParserGrammarCpp ${IocParserBinaryDir}/IocParserGrammar.cpp )
add_subdirectory ( ioc )
add_custom_target ( IocParser echo "Creating IOC parser" ) add_custom_target ( IocParser echo "Creating IOC parser" )
add_custom_command ( SOURCE ${IocParserScanner} add_custom_command ( SOURCE ${IocParserScanner}
COMMAND ${FLEX_EXECUTABLE} COMMAND ${FLEX_EXECUTABLE}
@ -180,6 +182,7 @@
# # set ( LibertyParserGrammar ${LibertyParserSourceDir}/LibertyParserGrammar.yy ) # # set ( LibertyParserGrammar ${LibertyParserSourceDir}/LibertyParserGrammar.yy )
# # set ( LibertyParserScannerCpp ${LibertyParserBinaryDir}/LibertyParserScanner.cpp ) # # set ( LibertyParserScannerCpp ${LibertyParserBinaryDir}/LibertyParserScanner.cpp )
# # set ( LibertyParserGrammarCpp ${LibertyParserBinaryDir}/LibertyParserGrammar.cpp ) # # set ( LibertyParserGrammarCpp ${LibertyParserBinaryDir}/LibertyParserGrammar.cpp )
# # add_subdirectory ( liberty )
# # add_custom_target ( LibertyParser echo "Creating LIBERTY parser" ) # # add_custom_target ( LibertyParser echo "Creating LIBERTY parser" )
# # add_custom_command ( SOURCE ${LibertyParserScanner} # # add_custom_command ( SOURCE ${LibertyParserScanner}
# COMMAND ${FLEX_EXECUTABLE} # COMMAND ${FLEX_EXECUTABLE}