1
Feature requests / replace CMAKE_* by PROJECT_* in all CMakeLists.txt
« on: November 29, 2010, 10:38:53 am »
Hi,
I'm creating a project, and throwing SFML into a subdirectory of it. I plan to distribute them together and have my main CMakeLists.txt include the SFML one. (using add_subdirectory(${PROJECT_SOURCE_DIR}/sfml2))
This works well, but I had to change all CMAKE_* variables (like CMAKE_SOURCE_DIR) to PROJECT_* ones (like PROJECT_SOURCE_DIR). I think this is what you really need!
Unfortunately I cannot create a patch because I have other local changes and I am not good working with diff (selecting only some files) But it's really just a find-replace.
Or maybe am I doing something wrong?
I'm creating a project, and throwing SFML into a subdirectory of it. I plan to distribute them together and have my main CMakeLists.txt include the SFML one. (using add_subdirectory(${PROJECT_SOURCE_DIR}/sfml2))
This works well, but I had to change all CMAKE_* variables (like CMAKE_SOURCE_DIR) to PROJECT_* ones (like PROJECT_SOURCE_DIR). I think this is what you really need!
Unfortunately I cannot create a patch because I have other local changes and I am not good working with diff (selecting only some files) But it's really just a find-replace.
Or maybe am I doing something wrong?