]> granicus.if.org Git - taglib/commitdiff
Fix for using Taglib as a CMake sub directory project.
authorFestus Hagen <festushagen2002@yahoo.com>
Tue, 28 Apr 2015 07:24:04 +0000 (03:24 -0400)
committerFestus Hagen <festushagen2002@yahoo.com>
Sun, 10 May 2015 00:29:52 +0000 (20:29 -0400)
cmake/modules/TestFloatFormat.cmake
taglib/CMakeLists.txt

index c1bc568f811fbc8874aa9e2cc8de2c783cd2bcc0..ef9b18606784d53217c3cc0af7f22e1b7a866cdd 100644 (file)
@@ -3,7 +3,7 @@
 MACRO(TEST_FLOAT_FORMAT FP_IEEE754)
   IF(NOT FP_IEEE754)
     TRY_COMPILE(HAVE_FLOAT_FORMAT_BIN
-      "${CMAKE_BINARY_DIR}" "${CMAKE_SOURCE_DIR}/cmake/TestFloatFormat.c"
+      "${CMAKE_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/cmake/TestFloatFormat.c"
     COPY_FILE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/TestFloatFormat.bin")
 
     SET(FP_IEEE754 0)
index 33a0030bf2b9091e21dfc6ddcb4cdd2a5d5f7d17..73c1a2f8a8835ae59e2b3318ea83a2c8b8f3cbce 100644 (file)
@@ -37,7 +37,7 @@ set(tag_HDRS
   fileref.h
   audioproperties.h
   taglib_export.h
-  ${CMAKE_BINARY_DIR}/taglib_config.h
+  ${CMAKE_CURRENT_BINARY_DIR}/../taglib_config.h
   toolkit/taglib.h
   toolkit/tstring.h
   toolkit/tlist.h