[Ktutorial-commits] SF.net SVN: ktutorial:[370] trunk/ktutorial/ktutorial-test-app/CMakeLists. txt
Status: Alpha
Brought to you by:
danxuliu
From: <dan...@us...> - 2012-08-15 00:58:55
|
Revision: 370 http://ktutorial.svn.sourceforge.net/ktutorial/?rev=370&view=rev Author: danxuliu Date: 2012-08-15 00:58:48 +0000 (Wed, 15 Aug 2012) Log Message: ----------- Fix using KTutorial headers already installed instead of the ones from the build directory when building KTutorial test app along with the library. Modified Paths: -------------- trunk/ktutorial/ktutorial-test-app/CMakeLists.txt Modified: trunk/ktutorial/ktutorial-test-app/CMakeLists.txt =================================================================== --- trunk/ktutorial/ktutorial-test-app/CMakeLists.txt 2012-08-14 22:34:53 UTC (rev 369) +++ trunk/ktutorial/ktutorial-test-app/CMakeLists.txt 2012-08-15 00:58:48 UTC (rev 370) @@ -10,7 +10,10 @@ # of the library. if(ktutorial-library_BINARY_DIR) set(KTUTORIAL_FOUND TRUE) - include_directories(${ktutorial-library_BINARY_DIR}/includes) + # Include the headers from the build directory before the general includes + # to ensure that, even if the KTutorial headers were installed, the ones + # from the build directory (and, thus, the most updated ones) are used. + include_directories(BEFORE ${ktutorial-library_BINARY_DIR}/includes) set(KTUTORIAL_LIBRARIES ktutorial) endif(ktutorial-library_BINARY_DIR) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |