You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
From 635b65fa417f49ac4ae189e926bf138efc6544d6 Mon Sep 17 00:00:00 2001
|
|
From: Hrvoje Senjan <hrvoje.senjan@gmail.com>
|
|
Date: Thu, 28 May 2015 17:56:47 +0200
|
|
Subject: [PATCH 5/5] Yet another _include_dirs fix
|
|
|
|
The variable is set as a definition, so mark it as such
|
|
---
|
|
cmake/FindPhononInternal.cmake | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/cmake/FindPhononInternal.cmake b/cmake/FindPhononInternal.cmake
|
|
index aced185..9f6ab40 100644
|
|
--- a/cmake/FindPhononInternal.cmake
|
|
+++ b/cmake/FindPhononInternal.cmake
|
|
@@ -409,7 +409,7 @@ if (CMAKE_COMPILER_IS_GNUCXX)
|
|
file(WRITE "${_source_file}" "${_source}")
|
|
set(_include_dirs "-DINCLUDE_DIRECTORIES:STRING=${QT_INCLUDES}")
|
|
|
|
- try_compile(_compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${CMAKE_CXX_FLAGS}" INCLUDE_DIRECTORIES "${_include_dirs}" OUTPUT_VARIABLE _compile_output_var)
|
|
+ try_compile(_compile_result ${CMAKE_BINARY_DIR} ${_source_file} CMAKE_FLAGS "${CMAKE_CXX_FLAGS}" COMPILE_DEFINITIONS "${_include_dirs}" OUTPUT_VARIABLE _compile_output_var)
|
|
|
|
if(NOT _compile_result)
|
|
message("${_compile_output_var}")
|
|
--
|
|
1.9.3
|
|
|