From 1f9fb3d425a38f70d1a22354b9fec0a47e3cc173 Mon Sep 17 00:00:00 2001 From: The Coriolis Project Date: Thu, 11 Mar 2010 21:39:12 +0000 Subject: [PATCH] Restore the add_subdirectory whitout CMakeList as cmake no longers find files in it when running. Set policy 0014 to OLD to avoid warnings. --- crlcore/CMakeLists.txt | 1 + crlcore/src/ccore/CMakeLists.txt | 3 +++ 2 files changed, 4 insertions(+) diff --git a/crlcore/CMakeLists.txt b/crlcore/CMakeLists.txt index 7e425039..ab753f2a 100644 --- a/crlcore/CMakeLists.txt +++ b/crlcore/CMakeLists.txt @@ -5,6 +5,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0) IF(COMMAND CMAKE_POLICY) CMAKE_POLICY(SET CMP0003 NEW) CMAKE_POLICY(SET CMP0005 NEW) + CMAKE_POLICY(SET CMP0014 OLD) 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/" ) diff --git a/crlcore/src/ccore/CMakeLists.txt b/crlcore/src/ccore/CMakeLists.txt index 7d6d9210..f08ab824 100644 --- a/crlcore/src/ccore/CMakeLists.txt +++ b/crlcore/src/ccore/CMakeLists.txt @@ -124,6 +124,7 @@ set ( VstParserGrammar ${VstParserSourceDir}/VstParserGrammar.yy ) set ( VstParserScannerCpp ${VstParserBinaryDir}/VstParserScanner.cpp ) set ( VstParserGrammarCpp ${VstParserBinaryDir}/VstParserGrammar.cpp ) + add_subdirectory ( alliance ) add_custom_target ( VstParser echo "Creating VST parser" ) add_custom_command ( SOURCE ${VstParserScanner} COMMAND ${FLEX_EXECUTABLE} @@ -152,6 +153,7 @@ set ( IocParserGrammar ${IocParserSourceDir}/IocParserGrammar.yy ) set ( IocParserScannerCpp ${IocParserBinaryDir}/IocParserScanner.cpp ) set ( IocParserGrammarCpp ${IocParserBinaryDir}/IocParserGrammar.cpp ) + add_subdirectory ( ioc ) add_custom_target ( IocParser echo "Creating IOC parser" ) add_custom_command ( SOURCE ${IocParserScanner} COMMAND ${FLEX_EXECUTABLE} @@ -180,6 +182,7 @@ # # set ( LibertyParserGrammar ${LibertyParserSourceDir}/LibertyParserGrammar.yy ) # # set ( LibertyParserScannerCpp ${LibertyParserBinaryDir}/LibertyParserScanner.cpp ) # # set ( LibertyParserGrammarCpp ${LibertyParserBinaryDir}/LibertyParserGrammar.cpp ) +# # add_subdirectory ( liberty ) # # add_custom_target ( LibertyParser echo "Creating LIBERTY parser" ) # # add_custom_command ( SOURCE ${LibertyParserScanner} # COMMAND ${FLEX_EXECUTABLE}