From d40e7f26a049d23247ad794e9a17bc30ad2b7fbe Mon Sep 17 00:00:00 2001 From: Glenn Rice Date: Sat, 5 Mar 2011 12:45:29 +0000 Subject: [PATCH] Build fix of linux build fix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7296 8ced0084-cf51-0410-be5f-012b33b47a6e --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0323f32525..3c88d3aa75 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -145,10 +145,12 @@ if(NOT OPENGL_GLU_FOUND) message(FATAL_ERROR "GLU is required but not found") endif() -include(FindOpenMP REQUIRED) +include(FindOpenMP) if(OPENMP_FOUND) - add_definitions(${OpenMP_CXX_FLAGS}) - set(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}) + add_definitions("${OpenMP_CXX_FLAGS}") + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_CXX_FLAGS}") +else() + message(FATAL_ERROR "OpenMP is required but not found") endif() include(FindALSA OPTIONAL)