Skip to content

Commit

Permalink
fix CMake syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jan 28, 2020
1 parent 311cb03 commit e3c49ab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.deps.txt.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ ENDIF()

include(ExternalProject)
ExternalProject_Add(allegro
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/allegro
INSTALL_DIR ${CMAKE_CURRENT_BINARY_DIR}/deps
SOURCE_DIR @CMAKE_CURRENT_SOURCE_DIR@/allegro
INSTALL_DIR @CMAKE_CURRENT_BINARY_DIR@/deps
CMAKE_ARGS
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/deps
-DCMAKE_C_FLAGS=$${extra_cflags}
-DCMAKE_INSTALL_PREFIX=@CMAKE_CURRENT_BINARY_DIR@/deps
-DCMAKE_C_FLAGS=${extra_cflags}
-DSHARED=0
-DWANT_ALLOW_SSE=0
-DWANT_DOCS=0
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PROJECT (isoworld)

# hack to compile allegro at configure time
configure_file(CMakeLists.deps.txt.in deps-build/CMakeLists.txt)
configure_file(CMakeLists.deps.txt.in deps-build/CMakeLists.txt @ONLY)
execute_process(COMMAND ${CMAKE_COMMAND} -G "${CMAKE_GENERATOR}" .
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/deps-build
RESULT_VARIABLE deps_configure_result)
Expand Down

0 comments on commit e3c49ab

Please sign in to comment.