From a9d7314bbb2c0c5b0435de8c6577eaad18d6e928 Mon Sep 17 00:00:00 2001 From: Cory Bloor Date: Wed, 17 Jun 2015 19:10:51 -0600 Subject: [PATCH] Fix link order on Ubuntu 14.04 Specifically, the change fixes this error: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libglut.so: undefined reference to symbol 'XCreateBitmapFromData' /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libX11.so: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status --- Demos/BarDemo/CMakeLists.txt | 2 +- Demos/ClothDemo/CMakeLists.txt | 2 +- Demos/FluidDemo/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Demos/BarDemo/CMakeLists.txt b/Demos/BarDemo/CMakeLists.txt index 7687771f..08a7fa38 100644 --- a/Demos/BarDemo/CMakeLists.txt +++ b/Demos/BarDemo/CMakeLists.txt @@ -9,9 +9,9 @@ else() find_package(OpenGL REQUIRED) set(SIMULATION_LINK_LIBRARIES + ${SIMULATION_LINK_LIBRARIES} ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES} - ${SIMULATION_LINK_LIBRARIES} ) endif() diff --git a/Demos/ClothDemo/CMakeLists.txt b/Demos/ClothDemo/CMakeLists.txt index 6ec0bfd9..f9b782d2 100644 --- a/Demos/ClothDemo/CMakeLists.txt +++ b/Demos/ClothDemo/CMakeLists.txt @@ -9,9 +9,9 @@ else() find_package(OpenGL REQUIRED) set(SIMULATION_LINK_LIBRARIES + ${SIMULATION_LINK_LIBRARIES} ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES} - ${SIMULATION_LINK_LIBRARIES} ) endif() diff --git a/Demos/FluidDemo/CMakeLists.txt b/Demos/FluidDemo/CMakeLists.txt index 031127ea..9bd89062 100644 --- a/Demos/FluidDemo/CMakeLists.txt +++ b/Demos/FluidDemo/CMakeLists.txt @@ -9,9 +9,9 @@ else() find_package(OpenGL REQUIRED) set(SIMULATION_LINK_LIBRARIES + ${SIMULATION_LINK_LIBRARIES} ${GLUT_LIBRARIES} ${OPENGL_LIBRARIES} - ${SIMULATION_LINK_LIBRARIES} ) endif()